CW 5.1 & partial optimization

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

CW 5.1 & partial optimization

跳至解决方案
1,155 次查看
Eric_t
Contributor III

Hi everybody,

 

Currently we are using codewarrior 5.1 and mc9s12dg256 controller.

Our firmware have reach memory limits, so we are forced to use optimize for code size.

The problem is that we have to speed up some of the firmware routines.

We wonder if we can have a separate optimization for some routines. (optimize for code size for the whole firmware, but optimize for execution time for specific routines)

We have search CW documentation but we could not find anything.

 

We will appreciate any help

标签 (1)
0 项奖励
回复
1 解答
920 次查看
trytohelp
NXP Employee
NXP Employee

Hi Eric,

By default the build tool chain for HC12 v5.1 used several optimizations.

The optimizations are defined for all project  - for all project source files.

Now if for a file you want to disable some options, add other ones you can use the #pragma OPTION.

I recommend you to have a look in the \CWS12v5.1\Help\PDF\Compiler_HC12.pdf page 383.

Hope this will help.


Have a great day,
Pascal
Freescale Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
2 回复数
921 次查看
trytohelp
NXP Employee
NXP Employee

Hi Eric,

By default the build tool chain for HC12 v5.1 used several optimizations.

The optimizations are defined for all project  - for all project source files.

Now if for a file you want to disable some options, add other ones you can use the #pragma OPTION.

I recommend you to have a look in the \CWS12v5.1\Help\PDF\Compiler_HC12.pdf page 383.

Hope this will help.


Have a great day,
Pascal
Freescale Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
920 次查看
Eric_t
Contributor III

thank you Pascal

0 项奖励
回复