Hi,
the easiest way to view the disassembly of your programm is:
- start the Nios2 IDE.
- make sure the generation of a objdump file is enabled.
(In Nios2 IDE check Window->Preferences->Nios II->Generate objdump file)
- compile your project
- after that in the folder <your project directory>/Debug there should be a file called <your_program>.elf.objdump. This file contains (among other things) a disassembly of your executable
Note that this call disassembles ALL your sections, including the sections containing your initialized data. Don't be confused by this.
I hope this helps.