Having a real issue with CooCox Ver 2.0.3 (and GNU compiler (4.7 2013q3)) and the compiled size of a program for an STM32F07 chip. Perhaps this is simply a compiler misunderstanding on my end.
I started out using Ver 1.7.5. and ended up with a compiled program of around 20kB. I ported the program over to 2.0.3 and continued development. It wasn't long and I realized my code was over 100kB. Something seemed very wrong. I went back and noticed that after switching to the newer IDE, the code size jumped from 17kB, to 70kB.
So I began investigating. I piped my latest code, compile size of around 100kB, to the old IDE (1.7.3) using the same libraries. Compiled (and ran on device) at 37kB. Copied the project directory and retried with version 2.0.3. Now it comes in around 67kB. Why would it be bigger? Where did the 100kB go?
Any clues on how to go about tracking this issue down?
A side note, may be irrelevant. I downloaded a couple of mbed libraries recently to try a few routines. I thought it was interesting that I added them to the project within the IDE, used the function in the main.c, and it went off working. It wasn't until later I realized I never did #include them in any of the source code. Why would it include/compile files that I never #include in the main.c or any of the used source code? It certainly does not do this for the .h and .c libraries I have built.
I started out using Ver 1.7.5. and ended up with a compiled program of around 20kB. I ported the program over to 2.0.3 and continued development. It wasn't long and I realized my code was over 100kB. Something seemed very wrong. I went back and noticed that after switching to the newer IDE, the code size jumped from 17kB, to 70kB.
So I began investigating. I piped my latest code, compile size of around 100kB, to the old IDE (1.7.3) using the same libraries. Compiled (and ran on device) at 37kB. Copied the project directory and retried with version 2.0.3. Now it comes in around 67kB. Why would it be bigger? Where did the 100kB go?
Any clues on how to go about tracking this issue down?
A side note, may be irrelevant. I downloaded a couple of mbed libraries recently to try a few routines. I thought it was interesting that I added them to the project within the IDE, used the function in the main.c, and it went off working. It wasn't until later I realized I never did #include them in any of the source code. Why would it include/compile files that I never #include in the main.c or any of the used source code? It certainly does not do this for the .h and .c libraries I have built.