Hello,
I have built bcc-2.2.1-gcc from sources successfully and I am now trying to use time functions (e.g. clock()) in my code for the LEON3 to measure the execution time. According to the BCC User’s Manual I need to first call leonbare_init_ticks() and include asm-leon/timer.h. However, the compiler fails as it can’t find asm-leon/timer.h and the header is not found in the built bcc destination directory. In other words, when newlib is built, the time functions are not included.
I have seen that libgloss is disabled in the provided build script (ubuild.sh), but even enabling it does not solve the issue. Currently, I’m executing it as:
./ubuild.sh --destination path --toolchain --libbcc
Is there any flag I need to set when building newlib? Otherwise, what is the configuration I should use?
Thanks for your help!
Marc