Forum Discussion
Altera_Forum
Honored Contributor
10 years ago --- Quote Start --- I 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 | +---------------+-----+------------+---------------+------------+ --- Quote End --- gfarhat - can I check with you that your suggested workaround (i.e. to build first for the small C library and then the normal C library) actually gives correctly functioning code at the end of the day? I have not yet been able to run my code but I am suspicious of the BSP when it is built for the Normal C library since it compiles far too quickly (normally, when the BSP successfully builds using the FPH 2 the build time is very long (> 1hour), whereas it is only a minute or two using your workaround. I suspect that a 'clean' is required between BSP builds in order to get the correctly compiled library, however unfortunately this just gives rise to the original problem. Perhaps you have found an alternative fix for this?