Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
21 years ago

nios-build vs. nios-elf-gcc

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

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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