Re: UNITS vs. BYTES

2005-11-11 Thread Ian Lance Taylor
Adrian Prantl <[EMAIL PROTECTED]> writes: > Another question is whether there is actually a need to carry around the two > concepts of BYTES and UNITS anyway. It seems that for most backends those > are of the same size anyway, and for the other backends it would be much > easier if there were onl

Re: UNITS vs. BYTES

2005-11-11 Thread Paolo Bonzini
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. While doing so I came across a few inconsistencies regarding the usage of the BITS_PER_UNIT Macro. (and UNITS_PER_WORD, in a related st

Re: UNITS vs. BYTES

2005-11-11 Thread Hans-Peter Nilsson
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

UNITS vs. BYTES

2005-11-11 Thread Adrian Prantl
Hello everybody, I am currently working on creating a new gcc backend for a word-addressable machine with 24-Bit general purpose registers. While doing so I came across a few inconsistencies regarding the usage of the BITS_PER_UNIT Macro. (and UNITS_PER_WORD, in a related story) Apparently a lot