Forum Discussion
Altera_Forum
Honored Contributor
15 years ago --- Quote Start --- you need the C runtime startup to initialize the NIOS II system and it jumps to _alt_main. --- Quote End --- Strictly speaking, this isn't true. If you drop the Altera provided syslib/bsp entirely, you can avoid all the default C runtime and initialization stuff. If you include the syslib/bsp as it appears the OP has done, then you do need to define either _alt_main or _main as you have suggested.