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-Thread: 103376,a3fe2aac201210c0 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local1.nntp.dca.giganews.com!nntp.megapath.net!news.megapath.net.POSTED!not-for-mail NNTP-Posting-Date: Wed, 21 Jul 2004 16:38:38 -0500 From: "Randy Brukardt" Newsgroups: comp.lang.ada References: <40f6bf21@dnews.tpgi.com.au> <40fb8c00$1_1@baen1673807.greenlnk.net> Subject: Re: reading a text file into a string Date: Wed, 21 Jul 2004 16:39:15 -0500 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Message-ID: NNTP-Posting-Host: 64.32.209.38 X-Trace: sv3-8N6vpg4hEKUr7RT1pp+O4mIR69b0hdtkOGkez13XsE+35eAhJzpR8pvY8AOHC08fYT9/g7lYgMYCvMD!xdx8odByqFMVDb8je36AbMOfq+2dW+1Sl0VPUa+yqhKuJDVQMjDGWdC3rsn8oyzRpTSRcMiAh8gH X-Complaints-To: abuse@megapath.net X-DMCA-Complaints-To: abuse@megapath.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 Xref: g2news1.google.com comp.lang.ada:2333 Date: 2004-07-21T16:39:15-05:00 List-Id: "Robert I. Eachus" wrote in message news:nM-dnegXLbmdK2DdRVn-hQ@comcast.com... ... > When the programmer can do something simple like this to improve program > performance, it should be supported by all compilers. (Notice that this > is an error, not a warning.) I can see not supporting the subtype case > due to the (potential) requirement for either large stack frames or > varying size stack frames. But for an object that can be allocated at > link time, I don't see why it shouldn't be supported. What's an object allocated at link time? I don't know of any such thing (you can allocate segments at link time, but the number of those is quite limited). Similarly, do you know of *any* compiler for *any* language that supports 256 byte alignment? I don't, at least on Windows. As far as I know, the largest alignment on Windows is paragraph. (There may be choices for larger alignments in the linker structures, but I would guess that if they are't used by the C compiler, they don't work. That's certainly been our experience with linkers on Windows, SunOS, SCO Unix, the U2000, etc. Virtually nothing we tried would work until we duplicated precisely what the local C compiler generated. Then all is fine...) Randy.