This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Multi-use register clobbering.
- From: Gyle Yearsley <gyearsley at zilog dot com>
- To: "'gcc at gcc dot gnu dot org'" <gcc at gcc dot gnu dot org>
- Date: Thu, 12 Aug 2004 17:00:42 -0700
- Subject: Multi-use register clobbering.
Is there any way to tell gcc that a processor can operate in byte
mode on all four bytes of a 32 bit register? If any of the bytes are used
then gcc would have to realize that the rest of the register was clobbered.
I have not seen anywhere in the documentation or other ports where this is
done.
32 Bit Register
---------------------------------------------------------
| Byte 3 | Byte 2 | Byte 1| Byte0 |
---------------------------------------------------------
The processor can use the 32 bit registers as a single 32 bit value or 4
byte wide values.
Thanks,
Gyle Yearsley
gyearsley@zilog.com