Forum Discussion
Altera_Forum
Honored Contributor
21 years agovariables location in memory
Hi all, how should I obtain variable address in memory after build? Are there any flags for compilator or linker? Is this information available? I need absolute address for all varia...
Altera_Forum
Honored Contributor
21 years agoAssuming that you are using the IDE to build a HAL based project, then you can get the information by selecting: Window->Preferences->Nios II and then ticking the "Generate objdump file" tick box.
Next time you build your project, a file will appear in the Debug/Release directory with the extension .objdump. Amongst other things, this contains the absolute address of all available symbols. You can also run nios2-elf-objdump from the command line to extract symbol information from any elf file.