Tool/software: TI C/C++ Compiler
Hi:
I use CCS8.0.0 with compiler version of TI v18.1.1.LTS in my daily work. The default initialization model of ARM linker is --rom_model(-c).
I have two projects named "DMC5800" and "DMC5C00" respectively. They are almost all the same except the size of some global variable in "DMC5C00" is a little larger than "DMC5800",such as "double arr[12]" in "DMC5C00" but "double arr[8]" in "DMC5800". My problem is that the size of generated bin file of "DMC5800" is much bigger than that of "DMC5C00" under the identical compiling condition.
I have checked the generated object files which are shown below. I think it's the "Load Addr" of ".cinit" section that causes the problem which making the size of bin file of "DMC5800" reaching 65MB but 2MB with that of "DMC5C00".
My questions are that:
1.the two projects are almost the same, how does such a big difference of location of ".cinit" section come about under the identical compiling condition?
2.The 65MB bin file is too big to flash into ROM of our board, what can I do to handle this problem?

