Re: BITS_PER_UNIT less than 8

2007-12-31 Thread Boris Boesler
Am 08.12.2007 um 02:49 schrieb Joseph S. Myers: On Fri, 7 Dec 2007, Ross Ridge wrote: Boris Boesler writes: Ok, so what have I to do to write a back-end where all addresses are given in bits? Memory is addressed in bits, not bytes. So I set: #define BITS_PER_UNIT 1 #define UNITS_PER_WORD 32

Re: BITS_PER_UNIT less than 8

2007-12-07 Thread Joseph S. Myers
On Fri, 7 Dec 2007, Ross Ridge wrote: > Boris Boesler writes: > > Ok, so what have I to do to write a back-end where all addresses are > > given in bits? Memory is addressed in bits, not bytes. So I set: > > > > #define BITS_PER_UNIT 1 > > #define UNITS_PER_WORD 32 > > I don't know if it's useful

Re: BITS_PER_UNIT less than 8 (was: Re: BITS_PER_UNIT larger than 8 -- word addressing)

2007-12-07 Thread Ian Lance Taylor
Boris Boesler <[EMAIL PROTECTED]> writes: > Ok, so what have I to do to write a back-end where all addresses > are given in bits? That's kind of an extreme case. But it sounds like you are following the right approach. > Without these changes the compiler stops with internal error > mesages

Re: BITS_PER_UNIT less than 8

2007-12-07 Thread Ross Ridge
Boris Boesler writes: > Ok, so what have I to do to write a back-end where all addresses are > given in bits? Memory is addressed in bits, not bytes. So I set: > > #define BITS_PER_UNIT 1 > #define UNITS_PER_WORD 32 I don't know if it's useful to define the size of a byte to be less than 8-bits, e

BITS_PER_UNIT less than 8 (was: Re: BITS_PER_UNIT larger than 8 -- word addressing)

2007-12-07 Thread Boris Boesler
Am 05.12.2007 um 22:32 schrieb Ian Lance Taylor: Boris Boesler <[EMAIL PROTECTED]> writes: I assume that GCC internals assume that memory can be byte (8 bits) addressed - for historical reasons. No. gcc internals assume that memory can be addressed in units of size BITS_PER_UNIT. The de