Forum Discussion
Altera_Forum
Honored Contributor
15 years agoSoftware size is too big
Hello guys, i've tried small C lib, reduced device drivers and everything else but nothing works.. I am using Quartus V10.0SP1 and NIOSEDS V10.0SP1, A hello word simple program with a printf ta...
Altera_Forum
Honored Contributor
15 years agoFind the elf program file for your working and non-working projects and look at the symbols (nm file, or objdump -n file) and program sections (objdump -p file). That might help to identify the bloat.
The altera printf() pulls in a lot of code! I suspect it maps to fprintf(stdout, ...) so requires large tracts of stdio rather that being implemented as a console write - as a unix kernel's printf() is usually implemented. After all, the likelyhood of wanting an actual stdio implementation on a real fpga embedded application is minimal.