Forum Discussion
Altera_Forum
Honored Contributor
12 years agoSize of C file running using NIOS II ON CHIP RAM
How to figure out how much amount of space is being occupied by the C.c file which is used to to run as an NIOS II hardware ?? For example in the file http://www.altera.com/literature/hb/extern...
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- In particular printf() drags in about 70k of code because it is built on top of the standard stdio library code which also pulls in malloc(). --- Quote End --- I think you're off by 10x. :) WIth "enable_small_c_library" and "enable_reduced_device_drivers" options enabled, then "Hello world" with a JTAG UART console takes 7KB. Without those options enabled, it is around 28KB.