Optimize compiler for code size

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Optimize compiler for code size

跳至解决方案
955 次查看
juliancox
Contributor V

I amusing CW 10.7 with a S08SH4 processor. Is there an option to configure the compiler to minimise code size? Also, what is the approximate difference in code size between the Debug and Release configurations?

标记 (1)
0 项奖励
回复
1 解答
789 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Julian Cox ,

- Yes, you can reduce code size through Properties-> C/C++ Build ->Setting -> .... as below:

pastedImage_1.png

You can find the detail description in "MCU_HCS08_compiler"-> 7.2.3.1.58 -O(-Os, -Ot): Main Optimization Target .

- What about the debug and release of your project ? they can configure by ourself , you can also check the defferent setting in Properties, or you can send your project to me .

Hope it helps,


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
1 回复
790 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Julian Cox ,

- Yes, you can reduce code size through Properties-> C/C++ Build ->Setting -> .... as below:

pastedImage_1.png

You can find the detail description in "MCU_HCS08_compiler"-> 7.2.3.1.58 -O(-Os, -Ot): Main Optimization Target .

- What about the debug and release of your project ? they can configure by ourself , you can also check the defferent setting in Properties, or you can send your project to me .

Hope it helps,


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复