Do not spill variables/registers on the stack
Jeff Law
law@redhat.com
Wed Feb 2 18:09:00 GMT 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 02/02/11 10:34, Philip Herron wrote:
>
> I am not quite sure what you are asking/trying to do but the register
> keyword is used to tell the compiler keep this variable inside any
> available registers which is useful if your going to use it alot in a
> piece of code i would imagine it could speed up things alot.
GCC ignores the "register" keyword.
Jeff
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJNSZ2pAAoJEBRtltQi2kC7C28H/jOxlMkn/whi5ALZ22CjRH7p
RK7lah+AseEdx6Fu4ZzKvn2kY6EnpP0OoyTmDl/4W6oBFQmQzGhbVRfRIWg3H+YB
JesHATyWXrq+Sf3SUf5dNqZ1lTIWE0fvFvFPPz28q03g7HvDPujFhM9Mi17DRe6W
g775i7jzZlDCUcUMz5BHWGUmUVGM7O/x/eU64XarGih26DJa/slUSYK2Wmh4j4YO
2R32AX7NJxGZ4Iup01OzZ5H3v1He14YqHA0g/xQe+aPQjEv2uaT1GLAjjY6jZZ1o
YceTXMmcDN0opprz/yEtcIR6+i/vLIiIPmTKp73DKgEwA0bOOHoyNkeNIzIpi1w=
=ihh3
-----END PGP SIGNATURE-----
More information about the Gcc-help
mailing list