Hi Garth, Here is the code generated by the gcc compiler with optimization -O3 and no stack frame generation. command line : m68k-palmos-gcc -O3 -S -fomit-frame-pointer test.c test: move.w 4(%sp),%d0 move.w %d0,%d1 lsl.w #5,%d1 lsl.w #6,%d0 add.w %d1,%d0 rts nop It seems that the gcc optimizer does a pretty good job. Emre -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
- Code Optimization Garth Watkins
- Re: Code Optimization JB Parrett
- code optimization Emre Omacan
- code optimization Sami
- Re: code optimization Marco Pantaleoni
