x86_64 inline assembly - missing registers
Jay L. T. Cornwall
jay.cornwall@imperial.ac.uk
Sat Nov 4 19:01:00 GMT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I've written a short piece of 64-bit x86 assembly (EM64t? AMD64? not
sure what it's called) to carefully restrict stack access in a memory
stress routine.
I have used registers rax through rdx and need two more, so r8 and r9
seem obvious candidates. However attempting to specify them as inputs to
the inline assembly routine in GCC 4.0.3 produces this error:
"error: matching constraint references invalid operand number"
Does GCC support the use of these registers as inputs to inline
assembly, or have I just stumbled on a bug?
- --
Jay L. T. Cornwall, http://www.esuna.co.uk/~jay/
PhD Student
Imperial College London
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFTOODz5MSArevZXwRAr8pAJ4hSTHTE//isartX9P2Bln3/rU3uACdFxIm
on+Xhxeb9AqHPqg3KCiZSwU=
=CTl7
-----END PGP SIGNATURE-----
More information about the Gcc-help
mailing list