CW 5.1 & partial optimization

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

CW 5.1 & partial optimization

ソリューションへジャンプ
1,255件の閲覧回数
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 解決策
1,020件の閲覧回数
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 返答(返信)
1,021件の閲覧回数
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 件の賞賛
返信
1,020件の閲覧回数
Eric_t
Contributor III

thank you Pascal

0 件の賞賛
返信