Forum Discussion
Altera_Forum
Honored Contributor
20 years ago[list][*]Use alt_main() instead of main().
[*]Copy the alt_sys_init() function that is generated in your system library over to your own source file [*]Delete any parts of your alt_sys_init() that you don't need. Make sure to give it a different name, if you're not just copying its code straight into your alt_main(). [*]So long as you don't reference anything in alt_sys_init.c (including globals), it won't link alt_sys_init.o into your executable. [/list]That should do it.