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.

CCSv5 Linker Map breakdown by Module/File

Hi,

Currently the map file created by CCSv5 breaks down the text section by each function. is it possible to change this so it would do so by file/module? I wish to avoid adding up each function.

Regards,
Gustavo

  • I presume you are using the build option --gen_func_subsections.  This option causes the compiler to place each function in its own input section.  Each of these sections/functions shows up in the linker map file.  Stop using that option, then the functions from the same source module are placed in the same input section.  If you go this route, you probably only want to do this no subsections build as a temporary step to gather the data.  The big advantage of --gen_func_subsections is it enables the tools to remove functions that are never called.

    Another option is to use --xml_link_info option to get the linker map file in XML format, then process that XML to gather your data.  Model your solution on the script lib_footprint in the cg_xml package.

    Thanks and regards,

    -George