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-02 13:56:07 PST Newsgroups: comp.lang.ada Path: supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!chcgil2-snf1.gtei.net!news.gtei.net!newspump.sol.net!nntp.msen.com!uunet!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: Mon, 2 Apr 2001 20:54:17 GMT References: <9aa3dd$efb$1@nh.pace.co.uk> <9aakcq$kj9$1@nh.pace.co.uk> Organization: The World Public Access UNIX, Brookline, MA X-Newsreader: Gnus v5.3/Emacs 19.34 Xref: supernews.google.com comp.lang.ada:6375 Date: 2001-04-02T20:54:17+00:00 List-Id: "Marin David Condic" writes: >...(IIRC, it was an 18 bit address, right? ... Right. Later models had some sort of segmentation mechanism to increase the address space (was it called "extended addressing", maybe?). > So this hypothetical Ada95 compiler would use 36 bits to store a character > or array of characters? By default, yes. I think that's what you want: default behavior is fast array indexing, and if you want tighter packing, say pragma Pack. This is what we do on one of our targets that happens to have 32-bit storage units. It's no different than an array of Booleans on a more typical machine -- you have to say pragma Pack if you want 1 bit per component. >... You'd have to use packing or other representation > clauses to get the characters into a single word? Hmmmmmmm....... That would > probably provide all sorts of ammunition for the Anti-Ada-Zealots. Shrug. The programmer gets the choice. And there's no pragma Dont_Pack, so it's pretty clear what the default ought to be. And would these Anti-Ada-Zealots perhaps prefer a language such as C, where there *is* no such choice? Note that the predefined String type has pragma Pack, so you would get 4 characters per word, with 4 bits per word wasted. - Bob