Anyone, can help on this code.
I try to load the existing source code to NIOS II.
did you compile the project first? Then if you select Run as Hardware it should find the .elf file for you.
For more complete information about compiler optimizations, see our Optimization Notice.