This is the mail archive of the
mailing list for the GCC project.
x86_64 inline assembly - missing registers
- From: "Jay L. T. Cornwall" <jay dot cornwall at imperial dot ac dot uk>
- To: gcc-help at gcc dot gnu dot org
- Date: Sat, 04 Nov 2006 19:01:23 +0000
- Subject: x86_64 inline assembly - missing registers
-----BEGIN PGP SIGNED MESSAGE-----
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
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/
Imperial College London
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----