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.

Hugh Code size difference when IAR code is converted to CCS

Other Parts Discussed in Thread: MSP430F2410

I am porting IAR5.40.2  code to CCS6.0.

With IAR V5.40.2 i can build the code less than 51934 Bytes((Flash1 + Flash2 = 0xC9DE + 0x100 = 51934 Bytes) ->memory sections in Linker)

With CCS 6.0(MCU: MSP430F2410) it is taking 53988 Bytes (almost 2KB high) than IAR code.

Using optimization advisor i selected the best code size compremising speed ( i)Optiization level ->4 Whole program optimization and ii) speed v size trade off ->0 )

If the memory of application sections or reduced and added(2KB) to flash section then it builds fine..

Memory assignment for all sections in linker file for both IAR and CCS is same. I don't know why it is taking such a huge size.

I need to know whether the huge size difference is due to change in compiler or any other reason.

How can i minimize it as i already tried optimizer adviser available in CCS.