Forum Discussion
Altera_Forum
Honored Contributor
14 years agohow to check the NIOSII code footprint size
Dear All, what's the best way in SBT 11.0 to analyze NIOSII program memory size? Thanks a lot, all.
Altera_Forum
Honored Contributor
14 years agoIf you need to fit code into internal memory, it is probably best to avoid as much of libc as possible. The hello_world_small template does some of that - but, IIRC, it still has sizable chunks of libc code.
If you can remove all references to malloc() and free() things will be much safer! but that may require you write your own startup code (about 4 instructions!) and may stop you using any of the jtag uart functions or most of the Altera hardware drivers.