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]

Re: UNITS vs. BYTES


On Fri, 11 Nov 2005, Adrian Prantl wrote:
> Hello everybody,
>
> I am currently working on creating a new gcc backend for a word-addressable
> machine with 24-Bit general purpose registers.

If the smallest unit you can address, the one between
address N and N+1, is a "word" then the unit must be a "word".
(You don't say the size of this "word" but from the context it
seems the size of your registers, 24 bits.)

Then you have to adjust (generalize) the gcc sources which has
bitrotted slightly to assume a unit is an 8-bit-byte, i.e.
likely the inconsistency you see.

It'd be best if/when you submit your GCC port to include newlib,
simulator and binutils ports (so everyone can regression-test
without hardware using only FSF sources) to reduce the risk of
future GCC bitrot in this area.

Thanks.

brgds, H-P


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