At 18:54 2003-1-11 +0100, you wrote:
One more remark:
__lmul__ calls appear only after optimization level 2 is selected. Debug
version and optimization level 1 contain correct muls instructions.
I would qualify it as an optimizer bug.

Acc. to the CW settings dialog it might concern common subexpression
elimination.
How can we change optimization level in the code? (Or better optimization
techniques used.) I could not locate this information among CW pragmas.
It probably is an optimization "issue" -- the optimizer is currently mainly tested on 32-bit int platforms, so they may not have caught something that results in over-promotion.

To just turn off subexpression elimination, you can use

#pragma opt_common_subs off

Try this and see if it helps. I'll report this issue to our optimizer guys and see what we can do.

--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com

--
For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to