Forum Discussion
Altera_Forum
Honored Contributor
19 years agoAs far as I know (not much) as soon as you enter the main.c function the C environment has to be created in the processor, this at least includes the creation of a stack. There is an option in the Nios IDE for creating assembly files of the compiled code, you can check it to see what the processor does before entering main.
If you are satisfied with about 6kB memory consumption for a simple hello world, you may use hello_alt_main and specify reduced driver size and simplified C library. iztok jeras