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.

Size of binary generated

Hi,

      I have problem with the size of the .out file generated in Code Composer Studio. For example, if you just create a new CCS Project and just compile it, you have the .out file of 31KB which is I think way too much for a code barely containing anything. So can someone shed light on what is happening.

Supreeth

  • Hi Supreeth,

    Keep in mind that the .out file is comprised of not just the actual target code but also the debug symbols which get loaded to just the debugger. If you are compiling with full debug information (the default option for the 'Debug' configuration) then likely most of the 31KB is debug symbols.

    Thanks

    ki

  • Hi Ki,

        I am compiling it in Release mode. It is 31KB with main containing only one line of code which is of watchdog and nothing else.So its way too much. So is there any way I can come over this.

    Supreeth

  • Supreeth Subbaraya1 said:
        I am compiling it in Release mode

    Even release mode will have some symbols. Check the generated .map file in your project configuration subfolder (same folder as where your .out file is) to check the size of the generated code sections.