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

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

Re: BITS_PER_UNIT larger than 8 -- word addressing

2007-12-05 Thread 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 default for BITS_PER_UNIT is 8. I have written back

Re: BITS_PER_UNIT larger than 8 -- word addressing

2007-12-05 Thread Boris Boesler
On 2007-11-27 18:29, Michael Eager wrote: > Joseph S. Myers wrote: > > On Tue, 27 Nov 2007, Michael Eager wrote: > > > >> I think that there is a pervasive understanding that SImode is > >> single precision integer, 32-bits long. > > > > Only among contributors not considering non-8-bit bytes. SI

Re: BITS_PER_UNIT larger than 8 -- word addressing

2007-11-30 Thread Joseph S. Myers
On Fri, 30 Nov 2007, Michael Eager wrote: > There's also __mode__ (__SI__) in include/sys/types.h Not in GCC. I don't know about the portability assumptions of newlib. -- Joseph S. Myers [EMAIL PROTECTED]

Re: BITS_PER_UNIT larger than 8 -- word addressing

2007-11-30 Thread Michael Eager
Michael Eager wrote: Joseph S. Myers wrote: On Tue, 27 Nov 2007, Michael Eager wrote: I think that there is a pervasive understanding that SImode is single precision integer, 32-bits long. Only among contributors not considering non-8-bit bytes. SImode is 4 times QImode, 4*BITS_PER_UNIT bi

Re: BITS_PER_UNIT larger than 8 -- word addressing

2007-11-27 Thread Michael Eager
Joseph S. Myers wrote: On Tue, 27 Nov 2007, Michael Eager wrote: I think that there is a pervasive understanding that SImode is single precision integer, 32-bits long. Only among contributors not considering non-8-bit bytes. SImode is 4 times QImode, 4*BITS_PER_UNIT bits, and may not exist

Re: BITS_PER_UNIT larger than 8 -- word addressing

2007-11-27 Thread Joseph S. Myers
On Tue, 27 Nov 2007, Michael Eager wrote: > I think that there is a pervasive understanding that SImode is > single precision integer, 32-bits long. Only among contributors not considering non-8-bit bytes. SImode is 4 times QImode, 4*BITS_PER_UNIT bits, and may not exist (or at least not be pa

Re: BITS_PER_UNIT larger than 8 -- word addressing

2007-11-27 Thread Michael Eager
Joseph S. Myers wrote: On Mon, 26 Nov 2007, Michael Eager wrote: Well, can't do that. This is not target dependent. DImode gets defined, and used, for long long in unwind-dw2.c. Is it defined what DWARF unwind information looks like when made up of bytes wider than 8 bits? Certainly GCC's

Re: BITS_PER_UNIT larger than 8 -- word addressing

2007-11-27 Thread Joseph S. Myers
On Mon, 26 Nov 2007, Michael Eager wrote: > Well, can't do that. This is not target dependent. > DImode gets defined, and used, for long long in unwind-dw2.c. Is it defined what DWARF unwind information looks like when made up of bytes wider than 8 bits? Certainly GCC's code won't allow for it

Re: BITS_PER_UNIT larger than 8 -- word addressing

2007-11-27 Thread Richard Sandiford
Michael Eager <[EMAIL PROTECTED]> writes: > Ross Ridge wrote: >> Miceal Eagar writes: >>> I'm working with a target that has 32-bit word addressing, >>> so there is a define of BITS_PER_UNIT = 32. >> >> According to the documentation, this changes the size of a byte to 32 >> bits, instead of the m

Re: BITS_PER_UNIT larger than 8 -- word addressing

2007-11-26 Thread Michael Eager
Ross Ridge wrote: Miceal Eagar writes: I'm working with a target that has 32-bit word addressing, so there is a define of BITS_PER_UNIT = 32. According to the documentation, this changes the size of a byte to 32 bits, instead of the more usual 8 bits. This causes a problem: an error saying

Re: BITS_PER_UNIT larger than 8 -- word addressing

2007-11-26 Thread Ross Ridge
Miceal Eagar writes: >I'm working with a target that has 32-bit word addressing, >so there is a define of BITS_PER_UNIT = 32. According to the documentation, this changes the size of a byte to 32 bits, instead of the more usual 8 bits. >This causes a problem: an error saying that there is >no em