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.
Tool/software: TI C/C++ Compiler
Hi TI member,
In some cases, I need to view the memory address of the variables. However, in the map file generated by CCS, there are only address list for 'extern' type variables. The 'static' variables are not shown in the map file. Can you show me how to list all the 'extern' and 'static' variables memory address in a map or xml or other type files? All the variables showing in a file is very useful to analyze memory problems(such as variables memory overflow). Thanks.
To see static variables in a map file, use the linker option --mapfile_contents=sym_defs.
Thanks and regards,
-George
Hi George,
Yes, "sym_defs" solution works. thanks so much.
However, I still have two suggestions:
1)if the local variables could be listed together with "GLOBAL SYMBOLS: SORTED BY Symbol Address", then the user could view all the local/golbal variables continuously with the memory address order.
2) Item 1 may be difficult to change. Then for "SYMBOL DEFINITIONS BY INPUT FILE", the local/global variables are listed without memory address order. It is not convenient for user to view the memory address.
thanks.
sir zhang58 said:1)if the local variables could be listed together with "GLOBAL SYMBOLS: SORTED BY Symbol Address", then the user could view all the local/golbal variables continuously with the memory address order.
You can get something close to that with the names utility nm2000. It is documented in the C2000 assembly tools manual. Use the command: nm2000 -n file.out
Thanks and regards,
-George