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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,6353697ffeb79d16 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Warren Newsgroups: comp.lang.ada Subject: Re: Encapsulating Ada.Direct_IO Date: Wed, 24 Nov 2010 21:31:28 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <5ba4147a-6099-4a05-b548-09544f58247a@j18g2000yqd.googlegroups.com> Injection-Date: Wed, 24 Nov 2010 21:31:28 +0000 (UTC) Injection-Info: mx03.eternal-september.org; posting-host="9f8M0iN5t54V+4DF/iqO8g"; logging-data="9650"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/6lSLZxCghkpRQGDFKQ57X+zuqh6pKy/I=" User-Agent: Xnews/5.04.25 X-Face: &6@]C2>ZS=NM|HE-^zWuryN#Z/2_.s9E|G&~DRi|sav9{E}XQJb*\_>=a5"q]\%A;5}LKP][1mA{gZ,Q!j Cancel-Lock: sha1:QvMvTeY/StWerTyXDzNXiuxgez8= Xref: g2news2.google.com comp.lang.ada:16618 Date: 2010-11-24T21:31:28+00:00 List-Id: Randy Brukardt expounded in news:ic1uop$nhs$1@munin.nbi.dk: > "Peter C. Chapin" wrote in message > news:tM6dnaTzn6shVH7RRVn_vwA@giganews.com... > ... >> Something I wonder about (I don't have the answer) is if >> it necessary to use a representation clause to force the >> size of the objects being read to be 8 bits. I'm a little >> unclear if the standard requires Character to be stored in >> a file in 8 bit units. That is, the language might treat >> the type Character rather more abstractly than you want. >> Again I'm not sure of this and I'd love to get some >> insights from others myself. > > Surely not. Not all machines have 8-bits as any sort of > native type. For instance, the Unisys U2200 (a 36-bit > machine, with 9-bit bytes) used Character'Size = 9. (It was > great fun for the cross-compiler.) > > Randy. Heh heh, the Honeywell Level 66 and DPS-8 machines were like that too. That extra bit in a byte sometimes came in handy. But that made porting to "normal platforms" tricky. Warren