This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]