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 /media/uploads/barryzxy/online_complies.jpg /media/uploads/barryzxy/keil.jpg

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.