Forum Discussion
Altera_Forum
Honored Contributor
10 years agoI could finally compile it. But I had to enable small C library prior to compile it. Otherwise it doesn't work.
After compile it, it works for both small C and normal C library. The problem is when i run my code with normal C library. The output of performance_counter_report shows some undesired characters and wrong number of occurrences: --Performance Counter Report-- Total Time: 19.1185 seconds (955926640 clock-cycles) (null)+---------------+-----+-----------+---------------+-----------+ | Section | % | Time (sec)| Time (clocks)|Occurrences| |S1 | 42.3| 8.07839| 403919509| 0| |S2 | 2.74| 0.52319| 26159687| 0| :ˆ‡ÿ¿à:È…ô|S3 | 17.7| 3.37469| 168734374| 0| :ˆ‡ÿ¿à:È…ô|S4 | 14.5| 2.77605| 138802309| 0| |S5 | 14.5| 2.77310| 138655221| 0| |S6 | 7.2| 1.37636| 68817767| 0| |S7 | 0| 0.00000| 0| 0| (null) with small C, I have this: --Performance Counter Report-- Total Time : 18942096 usec (947104845 clock-cycles) +---------------+-----+------------+---------------+------------+ | Section | % | Time (usec)| Time (clocks)|Occurrences | +---------------+-----+------------+---------------+------------+ | S1 | 42 | 8072909 | 403645491 | 1 | +---------------+-----+------------+---------------+------------+ | S2 | 2 | 547631 | 27381575 | 2048 | +---------------+-----+------------+---------------+------------+ | S3 | 17 | 3265533 | 163276653 | 2048 | +---------------+-----+------------+---------------+------------+ | S4 | 14 | 2730469 | 136523489 | 1 | +---------------+-----+------------+---------------+------------+ | S5 | 14 | 2730668 | 136533424 | 1 | +---------------+-----+------------+---------------+------------+ | S6 | 7 | 1376920 | 68846005 | 1 | +---------------+-----+------------+---------------+------------+ | S7 | 0 | 0 | 0 | 0 | +---------------+-----+------------+---------------+------------+