Forum Discussion
Altera_Forum
Honored Contributor
21 years agoGNU tools for NiosII
Hello, I am looking for information about application building without using NiosII IDE and Altera HAL. I'd like use GNU tools only. Does anybody have experiences with direct using GNU...
Altera_Forum
Honored Contributor
21 years agoThe simplest thing you can do to build your application without the ide is to create a shell script containing something like:
nios2-elf-gcc -O2 -o <project.elf> <source file.c> <another source file.c> Of course you can use options other than -O2 if appropriate. You'll need some startup code, so you should probably copy crt0.S from the HAL into your project before modifying it, and it will be easier to start from a HAL generated linker script.