This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

x86_64 inline assembly - missing registers


-----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-----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]