[Stackless] New 3 platforms for Stackless Python
tismer at tismer.com
Wed Mar 6 10:28:25 CET 2002
Russ Cox wrote:
>>How can we save&restore registers fast?
Another hint: The product description at
""" PowerPC Optimizations
ThreadX optimizes context switching on the PowerPC. When context
switching occurs inside of a ThreadX service call, only the registers
preserved across function calls are saved as part of the thread's
context. This is typically registers r14-r31.
A similar technique is used in interrupt handling.On the front end of
interrupt service routines, only the compiler's scratch registers are
saved initially (typically r0 and r3-r12). The full register set is
saved only if thread preemption is required.
I think this is a good guideline.
ciao - chris
Christian Tismer :^) <mailto:tismer at tismer.com>
Mission Impossible 5oftware : Have a break! Take a ride on Python's
Kaunstr. 26 : *Starship* http://starship.python.net/
14163 Berlin : PGP key -> http://wwwkeys.pgp.net/
PGP Fingerprint E182 71C7 1A9D 66E9 9D15 D3CC D4D7 93E2 1FAE F6DF
where do you want to jump today? http://www.stackless.com/
Stackless mailing list
Stackless at www.tismer.com
More information about the Stackless