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.

CCS/TMS320F280049C: .map file didn't show function call code size

Part Number: TMS320F280049C

Tool/software: Code Composer Studio

Hi Champs,

I build "adc_ex1_soc_epwm" example code and checked .map file. However, it only show .obj size. It didn't show each function call code size. I checked MSP430 .map file. It will show function code size. Could you please tell me does C2000 compiler can output function code size? If yes, could you please show me how to enable it ? thanks! 

  • Lisa Ding said:
    Could you please tell me does C2000 compiler can output function code size?

    The linker map shows the size of each function when the compiler places each function in it own sub-section.

    As of v16.6.0.STS the MSP430 compiler always places functions in their own subsections (as noted on Compiler option cleanup).

    For the C2000 compiler the "Place each function in a separate subsection (--gen_func_subsections,-mo)" option in the CCS Project Properties under CCS Build -> C2000 Compiler -> Advanced Options -> Runtime Model Options controls this, where the default option is off. If you change the option to on the linker map file should show function call sizes for the source files in the project. To see the effect on the run time support source files, you would need to re-compile the RTS with changed options.

  • Hi Chester,

    thanks! i can see function code size after enable "place each function in a separate subsection".