On Sun, 2008-02-24 at 10:51 -0500, Maurizio Vitale wrote: > As a followup question (assuming I have a function that destroys all > registers > in ways the compiler cannot know about), is there documentation > (for each platform, although I'm interested in X86_64 only) > on the minimum set of registers that must be left available to GCC? > Putting all general purpose registers in the clobber set fails in > some cases, but > removing registers from the clobber set (and adding explicit saves > around the inlined asm) > until my tests pass doesn't seem very safe. > > Thanks again, > > Maurizio AMD64 Application Binary Interface (v0.99) (aka abi.pdf) provides the rules for which registers must be preserved. It's available at www.x86-64.org/documentation/ Bob