From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,29f36805b9a20fe8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-06 15:58:06 PST Newsgroups: comp.lang.ada Path: supernews.google.com!sn-xit-03!supernews.com!freenix!codeine.org!colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!do.de.uu.net!ams.uu.net!zur.uu.net!ash.uu.net!world!bobduff From: Robert A Duff Subject: Re: Streams in Ada Sender: bobduff@world.std.com (Robert A Duff) Message-ID: Date: Fri, 6 Apr 2001 22:54:31 GMT References: <3ACC800B.C24CEB17@deja.com> Organization: The World Public Access UNIX, Brookline, MA X-Newsreader: Gnus v5.3/Emacs 19.34 Xref: supernews.google.com comp.lang.ada:6600 Date: 2001-04-06T22:54:31+00:00 List-Id: Brian Gaffney writes: > Robert A Duff wrote: > > > > Florian Weimer writes: > > > > > Ted Dennison writes: > > > > > > > I think you meant, "all possible Ada implementations", which I would > > > > disagree with. > > > > > > Do impossible Ada implementations exist? ;-) > > > > No, but some possible Ada implementations don't exist. ;-) > > > Are you sure? Yes, I'm quite sure that some possible Ada implementations do not (yet?) exist. >.... Isn't there a current _very_ long thread about a current > 'impossible' Ada implementation :-)? Oops, that's an Ada compiler/tool > set, sorry. > > Seriously, shouldn't the Storage_Unit refer to the addressable unit on > the machine? Yes. >.. For example, on a machine with 32-bit addressing, does the > potential address space cover 2**32 8-bit bytes, 32-bit words, or > 256-bit > cache-words? I'm not sure what you mean by "32-bit addressing". If an address points to an 8-bit quantity, then Storage_Unit = 8. If it points to a 32-bit quantity, then Storage_Unit = 32. It doesn't matter how big an address is. The cache has nothing to do with it. It's the machine architecture that matters. >.. I would think most machines are byte-addressable, > therefore > Storage_Unit should be 8. True on most machines, these days. >... On machines we use, we have a 16-bit address > space and can reference 2**16 16-bit half-words. Therefore Storage_Unit > would be 16 (assuming an Ada compiler existed, HA!), even though 8-bit > bytes and 32-bit words can be referenced. How are 8-bit bytes referenced? If by "load high/low byte pointed to by address", then yes, Storage_Unit should be 16. - Bob