Forum Discussion
Altera_Forum
Honored Contributor
15 years agoAltera Monitor Program nios2-elf-gcc compiler flags
It seems when I try to compile a C program using nios2-elf-gcc in the Altera Monitor Program (v. 11) several compiler flags are added by default. Where are these flags specified and can they be modi...
Altera_Forum
Honored Contributor
15 years agoIt appears to me that the compiler flag causing the issue, "-mno-cache-volatile", is indeed being passed directly to nios2-elf-gcc by the Altera Monitor Program software.
The only solution I could find was to install the Nios II legacy tool located here: https://www.altera.com/download/software/nios-ii The Nios II legacy tool installs GCC3 as well as some other "legacy" software. This eliminates the problem of the "-mno-cache-volatile" parameter by using a version of GCC that still supports it.