From: Robert A Duff <bobduff@world.std.com>
Subject: Re: Streams in Ada
Date: Mon, 2 Apr 2001 21:22:44 GMT
Date: 2001-04-02T21:22:44+00:00 [thread overview]
Message-ID: <wcc7l13vvx7.fsf@world.std.com> (raw)
In-Reply-To: 878zlj6m41.fsf@deneb.enyo.de
Florian Weimer <fw@deneb.enyo.de> writes:
> Robert A Duff <bobduff@world.std.com> writes:
>
> > > If I were writing an Ada compiler for the PDP-10, I would probably
> > > choose Storage_Element'Size = 9.
> >
> > Sounds like a bad idea to me. Storage_Element'Size should be 36 on the
> > PDP-10. I believe anything else would be unnecessarily inefficient.
>
> Are you sure?
No.
>... There are quite a few Ada compilers out there which use
> Storage_Element'Size = 8 even though it's inefficient on that
> particular platform.
Which machines? I've never heard of such a thing.
>...I think the size of a storage element is pretty
> irrelevant for efficiency concerns.
Well, maybe I misunderstood. I was presuming that if
Storage_Element'Size = 8, then the compiler behaves accordingly (eg,
for laying out arrays). *That's* what would affect efficiency.
I guess it's true that Storage_Element'Size in and of itself is
irrelevent unless you're using 'Address and related stuff.
> > >...IIRC, the GCC porters are doing a
> > > similar thing (CHAR_BITS == 8).
>
> Oops, CHAR_BITS == 9 of course.
>
> > That's because of various problems with the C language, which don't
> > exist in Ada. C has no packed arrays, for example. Plus the fact that
> > C culture has grown up in such a way that there's a huge amount of code
> > that implicitly assumes that char is 8 bits.
>
> An 8 bit char on a PDP-10 doesn't work. Only values which are
> divisors of 36 are acceptable.
I don't see why. The PDP-10 hardware can deal with 8-bit bytes just
fine (although you waste approx 1/9 of the bits). Is there some
subtlety of C I'm missing?
Or do I have to say you waste 1.0/9.0 of the bits? ;-)
- Bob
next prev parent reply other threads:[~2001-04-02 21:22 UTC|newest]
Thread overview: 50+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-31 14:49 Streams in Ada chris.danx
2001-03-31 15:22 ` chris.danx
2001-03-31 21:37 ` Jeff Creem
2001-03-31 21:49 ` chris.danx
2001-03-31 22:21 ` Robert A Duff
2001-03-31 22:33 ` chris.danx
2001-04-02 13:47 ` Ted Dennison
2001-04-02 14:03 ` Florian Weimer
2001-04-02 14:29 ` Ted Dennison
2001-04-02 14:54 ` Robert A Duff
2001-04-02 14:47 ` Marin David Condic
2001-04-02 15:10 ` Florian Weimer
2001-04-02 15:49 ` Ted Dennison
2001-04-02 16:57 ` Marin David Condic
2001-04-02 17:43 ` PDP-10, was " tmoran
2001-04-02 17:49 ` Robert A Duff
2001-04-02 22:09 ` 6-bit characters (was: Re: Streams in Ada) Jeffrey Carter
2001-04-02 23:29 ` Robert A Duff
2001-04-03 16:41 ` Jeffrey Carter
2001-04-03 17:57 ` Florian Weimer
2001-04-03 18:19 ` Marin David Condic
2001-04-05 18:37 ` Tucker Taft
2001-04-03 18:04 ` Marin David Condic
2001-04-06 22:40 ` Robert A Duff
2001-04-03 14:10 ` Marin David Condic
2001-04-03 1:57 ` Streams in Ada Larry Kilgallen
2001-04-03 14:13 ` Marin David Condic
2001-04-13 23:21 ` Robert A Duff
2001-04-02 17:41 ` Florian Weimer
2001-04-02 18:17 ` Robert A Duff
2001-04-02 19:36 ` Marin David Condic
2001-04-02 20:54 ` Robert A Duff
2001-04-03 10:10 ` Florian Weimer
2001-04-03 14:21 ` Marin David Condic
2001-04-03 18:15 ` Florian Weimer
2001-04-03 23:21 ` Robert A Duff
2001-04-02 21:13 ` Florian Weimer
2001-04-02 21:22 ` Robert A Duff [this message]
2001-04-03 10:02 ` Florian Weimer
2001-04-02 16:42 ` Marin David Condic
2001-04-13 5:00 ` David Thompson
2001-03-31 20:48 ` James Rogers
2001-03-31 21:20 ` chris.danx
2001-03-31 21:22 ` chris.danx
2001-03-31 23:10 ` David C. Hoos, Sr.
2001-04-01 11:27 ` chris.danx
2001-04-02 14:12 ` Ted Dennison
2001-04-02 14:00 ` Ted Dennison
-- strict thread matches above, loose matches on Subject: below --
2001-04-05 14:24 Brian Gaffney
2001-04-06 22:54 ` Robert A Duff
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox