CW 5.1 & partial optimization

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CW 5.1 & partial optimization

Jump to solution
537 Views
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

Labels (1)
0 Kudos
1 Solution
302 Views
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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
2 Replies
303 Views
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 Kudos
302 Views
Eric_t
Contributor III

thank you Pascal

0 Kudos