x86_64 inline assembly - missing registers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux