Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 6 months ago.
Why the same program online complie and export for keil, the code does not the same?
tips: I have import mbed src code
1 Answer
9 years, 6 months ago.
Keil has different levels of optimisation. By default it uses Level 0, which is good for debugging, but bad for size of binary file. If you change to Level 2 or Level 3, the binary file should be similar in size to the one produced by the mbed compiler. If you go to Project -> Options for Target, and click on the C/C++ tab, there's a drop down for Optimisation.