Forum Discussion
Altera_Forum
Honored Contributor
22 years agoNios Compiler Bug - Any Workarounds
I have run into a bug with the version of GCC supplied with the Nios v3.02 development kit (2.9-nios-010801-20030520) when compiling with for 32 bit Nios (compiler flags -O0 -m32 -mflat). If I write ...
Altera_Forum
Honored Contributor
22 years agoTo get around this with the most recent release of nios-elf-gcc, use the -mdebug-stack option. In the resulting output, look for functions with stack_info.saves = 0. These are the ones to modify.
nios-elf-gcc options -mdebug-stack rest of command >& out