On Jul 13, 2011, at 6:42 PM, Richard Tew wrote:

> On Thu, Jul 14, 2011 at 6:14 AM, Anselm Kruis
> <[email protected]> wrote:
>> 3. Using the clobber mechanism is a mixed blessing. On the one hand the 
>> compiler knows what to preserve. On the other hand, we have no guarantee, at 
>> which point in time the compiler restores the registers. The compile may 
>> restore the values immediately after the first __asm__ statement. Fortunately
>> current gcc versions don't do it.
> 
> When I had problems with __asm__ in gcc, I went to the gcc mailing
> list and it was advised that I write actual assembly.  This is why the
> arm thumb switch implementation completely written in assembly.  It's
> a bit more work, but if you really wanted to make sure this wouldn't
> happen, it's probably the way to go.
> 
> Jeff, you got time to test this on your end?  And maybe check it in,
> if it looks okay?

Will have to be next week... 

> 
> Cheers,
> Richard.
> 
> _______________________________________________
> Stackless mailing list
> [email protected]
> http://www.stackless.com/mailman/listinfo/stackless
> 


_______________________________________________
Stackless mailing list
[email protected]
http://www.stackless.com/mailman/listinfo/stackless

Reply via email to