On Tue, Aug 26, 2008 at 8:12 PM, Spen <[EMAIL PROTECTED]> wrote:
>> > I am struggling to see what gain this patch has brought
>> (unless i have
>> > missed something) - you are still calculating the checksum.
>> > you have just moved inline code to a inline function !!
>>
>> -O3 will remove the calculation because the result of that
>> calculation is not used.
>>
>
> i understand that bit, but why move the code into a inline function?

The first order of the day is to make sure that the code *is* optimized
away in -O3 and as I recall this was a way to ensure that. I need to verify
that -O3 *will* remove the code in this case or play other tricks.


-- 
Øyvind Harboe
http://www.zylin.com/zy1000.html
ARM7 ARM9 XScale Cortex
JTAG debugger and flash programmer
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to