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/MSP430FR2000: Bigger code size on release mode.

Part Number: MSP430FR2000

Tool/software: TI C/C++ Compiler

Hi,

Size of my customer's software is 378 Byte code size on Debug Mode. However software size on release mode is bigger than one on Debug Mode and my customer can not put software on release mode on MSP430FR2000 FRAM.

So I have two questions.

*Can my customer use software which is compiled on debug mode?
*Why does "release mode's software" include the autoinit.c/copy_zero_init.c?  and Please let us know how to resolve this issue.

Map data is as follows. Please advise us.

Thanks and best regards,
M.HATTORI.

-----

1.Debug Mode

MODULE SUMMARY

 

       Module             code   ro data   rw data

       ------             ----   -------   -------

   .\

       main.obj           340   6         4    

   +--+------------------+------+---------+---------+

       Total:             340   6         4    

                                                

   C:\ti\ccs1010\ccs\tools\compiler\ti-cgt-msp430_20.2.1.LTS\lib\rts430x_sc_sd_eabi.lib

       boot.c.obj         20     2         0    

       isr_trap.asm.obj   8     0         0    

       exit.c.obj         6     0         0    

       pre_init.c.obj     4     0         0    

       int48.asm.obj     0     2         0    

       int50.asm.obj     0     2         0    

       int53.asm.obj     0     2         0    

       int54.asm.obj     0     2         0    

       int55.asm.obj     0     2         0    

       int57.asm.obj     0     2         0    

       int58.asm.obj     0     2         0    

   +--+------------------+------+---------+---------+

       Total:             38     16       0    

                                                

       Stack:             0     0         160  

   +--+------------------+------+---------+---------+

       Grand Total:       378   22       164  

 

 

2.Release Mode 

 

MODULE SUMMARY

 

       Module                                   code   ro data   rw data

       ------                                   ----   -------   -------

   .\

       main.obj                                 352   0         0    

   +--+----------------------------------------+------+---------+---------+

       Total:                                   352   0         0    

                                                                      

   C:\Users\JN95066\AppData\Local\Temp\

       {E78F2F70-A622-4311-A728-9970806C664C}   0     6         4    

   +--+----------------------------------------+------+---------+---------+

       Total:                                   0     6         4    

                                                                      

   C:\ti\ccs1010\ccs\tools\compiler\ti-cgt-msp430_20.2.1.LTS\lib\rts430x_lc_sd_eabi.lib

       autoinit.c.obj                           106   0         0    

       copy_zero_init.c.obj                     62     0         0    

       boot.c.obj                               28     2         0    

       isr_trap.asm.obj                         8     0         0    

       exit.c.obj                               6     0         0    

       pre_init.c.obj                           4     0         0    

       int48.asm.obj                           0     2         0    

       int50.asm.obj                           0     2         0    

       int51.asm.obj                           0     2         0    

       int53.asm.obj                           0     2         0    

       int54.asm.obj                           0     2         0    

       int55.asm.obj                           0     2         0    

       int57.asm.obj                           0     2         0    

       int58.asm.obj                           0     2         0    

       startup.c.obj                           2     0         0    

   +--+----------------------------------------+------+---------+---------+

       Total:                                   216   18       0    

                                                                      

       Stack:                                   0     0         160  

       Linker Generated:                       0     18       0    

   +--+----------------------------------------+------+---------+---------+

       Grand Total:                             568   42       164  

 

  • Motoyasu Hattori said:
    *Can my customer use software which is compiled on debug mode?

    Yes

    Motoyasu Hattori said:
    *Why does "release mode's software" include the autoinit.c/copy_zero_init.c?

    Those two compiler RTS files should also be part of the Debug configuration build.  Are they?

    Another idea to consider ... Use the Optimizer Assistant to experiment with different settings of the compiler options --opt_level and --opt_for_speed.  You might find a setting that is both faster and smaller.

    Thanks and regards,

    -George