Forum Discussion
Altera_Forum
Honored Contributor
21 years ago --- Quote Start --- originally posted by monkeyboy@Dec 15 2004, 05:17 AM assuming 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. --- Quote End --- Hi, thanks, but it isn't what I need. I can't find variable location in *.objdump Simple example, hello from Nios...
#include <stdio.h>
int main()
{
char hello_string={"Hello from Nios II!\n"};
int i_cnt;
for (i_cnt=1;;i_cnt++) {
printf("%d. %s",i_cnt , hello_string);
}
return 0;
} I'm looking for i_cnt location (absolut memory address). Which address of memory I have to read to acquire actual i_cnt value ? I looked at nios2-elf-objdump help, but the aren't any other flags which solved it. Symbol table doesn't provide expected information. (x51 asembler has this info in "symbol table list " ) Is there another configuration or preprocesor settings? Thanks. Jan