AnsweredAssumed Answered

KDS build code size greater than IAR EWARM

Question asked by Takashima on Dec 29, 2014
Latest reply on Jan 5, 2015 by Erich Styger

We want to use the Kinetis Design Studio (KDS) instead of the IAR EWARM.

However the code size that was build by KDS greater than code size that was build by IAR EWARM.

Here is summary of code size that was build by KDS and EWARM.

KDS optimize optionread only coderead only datatotal of read onlyread write data
O0789268085722776
O1610868067882776
O2626468069442776
O3774468084242776
Os535268060322776
Ofast774468084242776
Og592468066042776

 

EWARM optimizeread only coderead only datatotal of read onlyread write data
None4324816514012
Low4080816489612
Middle4144208435212
High Size3912208412012
High Speed5214208542212
High Balance4316208452412
High Speed no limit4302208451012

 

I check and compare both .map file, I find out a reason why code size that was build by KDS greater than EWARM.

KDS was link the library then increase 1,760 bytes in read only code section, increase 672 bytes in read only data and increase 712 bytes (exclusion stack and heap) in read write data.

Can we remove library to reduce code size?

 

I attached my project.

Please advise to solve this issue as soon as possible.

 

Best regards,

Takashima

Original Attachment has been moved to: KE06_LED_demo.zip

Outcomes