This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to use name utility



Dear all,

I can print out a list of function names from a .out file for C2000 applications by "nm2000". How can I print out a list of global variable names and global structure member's names? Is there any specific settings during compilation?

Thanks in advance!

  • Hi Robert - I've moved your post to the compiler forum. They should have some ideas.
  • The name utility only prints the global symbols from the object file's symbol table. It cannot show you member names for structures. It also cannot distinguish which symbols truly correspond to C language global variables, although usually that's not to hard to figure out. Please refer to the C2000 assembly tools user's guide for documentation of the name utility. You may also want to look at the unix man page for "nm."

    To look at struct members, you should probably look at the DWARF debugging information. You can see this information by using the command "ofd2000 -g -x file.out" This will show you not only the symbols but also their types.