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
Is there any way to get the size of global symbols output in the map file? It lists all by address, so I can calculate a max possible size (ignoring holes), but it would be nice to be able to just read it.
I am using CL2000 version 6.1.0 (old I know, possibly I could use a later one), with --mapfile_contents=all (so it looks like all data is already being output). Is there another option that will add more information? I haven't found one.
Regards
Giles Robnson said:Is there any way to get the size of global symbols output in the map file?
Unfortunately, no. Considering other solutions, again, I am sorry to say no.
One partial solution to consider is the utility global_types_gen in the cg_xml package. It shows you the layout of all the structures in your code. Note it does not show the address of any specific structure, just the layout of the members in each structure type.
Thanks and regards,
-George
It sounds like that solution is working for you. For others who are reading this thread, I have a suggestion to consider.
Instead of reading the symbol table out of the linker map file, use the names utility nm2000 to extract the symbols directly from the executable (usually .out) file. The names utility is documented in the C2000 assembly tools manual. Capture symbol information in a text file, then open that file with Excel, or some other spreadsheet program.
Thanks and regards,
-George