Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

nios-build vs. nios-elf-gcc

Altera_Forum
Honored Contributor II
1,056 Views

Hi, 

 

I am trying to include the nios_gdb_stub code with my compilation, but am wanting to use gcc instead of nios-build (because I am using a makefile). 

 

Does anyone know what the gcc equivalent of "nios-build -d" is? I cannot see anything in the gcc help files about how to compile/link the nios_gdb_stub... 

 

Evan
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
364 Views

Wow, this takes me back. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif  

 

The nios-build executable is a script file, so you can take a look inside. I believe that the script does 2 things when you add the -d option to nios-build 

 

(1) uses the -g and -O0 compiler flags 

(2) links against libnios_debug.a or something along those lines 

 

Hope this helps
0 Kudos
Reply