Re: Can I force a word read-modify-write instread of a byte write?

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

 



Andrew Haley <aph-gcc@xxxxxxxxxxxxxxxxxxx> writes:

>  > There is nothing in gcc which will force it to use 32-bit memory
>  > accesses if you don't explicitly write 32-bit memory accesses.
> 
> You could hack the md file to add a new predicate to 8-bit memory
> accesses.  Wouldn't that cause gcc to generate the necessary 32-bit
> shifts and masks?

It would be easy to disable all 8-bit memory accesses.  Hacking the MD
file to test for a specific attribute on pointers wouldn't work
reliably.  An 8-bit variable would get promoted into a register,
reload would eventually try to spill that register back to its memory
location, and at that point it would crash.

Ian

[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