Forum Discussion
Altera_Forum
Honored Contributor
15 years agoLinking error in Nios II .elf file
Hi, The following errors occur when i try to build a simple "hello world" application. c:/altera/11.0/nios2eds/bin/gnu/h-i686-mingw32/bin/../lib/gcc/nios2-elf/4.1.2/../../../../nios2-elf/b...
Altera_Forum
Honored Contributor
14 years agoprintf() is excluded from the small C library because it pulls in quite a lot of dependand code (basically all the stdio code and malloc/free).
It is possible to write a standalone snprintf() that is under 1800 bytes (without long long or FP support) - does need __udivsi3 though. IIRC the small C library does contains some functions to print strings.