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.

Compiler/MSP430F5438A: what will be difference in Linker and map file generated by both compiler 4.1.0 and 16.9.0

Part Number: MSP430F5438A

Tool/software: TI C/C++ Compiler

Hai ,

Is't linker and map file generated by two compiler for same device are different?

If i build my application on lower compiler version, getting an error of program not fit into the memory in different section say .cint , .text , .const but the same source code when build by higher end compiler error get resolved. 

Why this is happening ?

Though i have space in both flash and flash2. How to resolve this ?

Is there any document available to know basic about the linker command file and compiler?

kindly help me out.

Thanks in advance.

  • Different versions of the compiler typically generate different code.  The longer the gap in time between releases, the larger the difference.  It is about 4.5 years between versions 4.1.0 and 16.9.0.  That is quite a long time, so you should expect lots of differences.  It is likely that version 16.9.0 generates smaller code then version 4.1.0.  It seems likely your code is a bit too big with version 4.1.0, and just under the limit with version 16.9.0.

    Embedded Developer said:
    Is there any document available to know basic about the linker command file and compiler?

    I recommend you start with the CGT Tips & Tricks for Beginners.  See the presentation for MSP430.

    The compiler is documented in the MSP430 Compiler User's Guide.  The linker is documented in the MSP430 Assembly Language Tools User's Guide.  Both are available on the page Code Generation Tools for TI processors and microcontrollers.

    Thanks and regards,

    -George