This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Reload byte using word access
- From: "D. Towner" <towner at compsci dot bristol dot ac dot uk>
- To: gcc <gcc at gcc dot gnu dot org>
- Date: Tue, 30 Apr 2002 16:57:57 +0100 (BST)
- Subject: Reload byte using word access
Hi all,
I am writing a gcc port for a new machine. One flavour of the machine
doesn't support byte access, so I use a define_expand to synthesise byte
access using word operations. Am I right in thinking that if a reload is
required for a byte register (which is a subreg of a word register), then
the address of the reload will be a word address (and aligned as such),
since an entire word will be allocated for the reload? If this is the
case, then it means I can handle byte reloads using word load/store's,
rather than having to write special (complicated!) reload_? operations.
Thanks,
Dan.
===============================================================================
Dan Towner
picoChip Designs Ltd.
dant@picochip.com