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,fd173879a595bde X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!uninett.no!news.banetele.no!dotsrc.org!news.dotsrc.org!not-for-mail Date: Fri, 04 Nov 2005 19:45:53 +0200 Subject: Re: Default rep specs for record types - documented?? Newsgroups: comp.lang.ada References: From: "Martin Krischik" Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: User-Agent: Opera M2/8.50 (Win32, build 7700) Organization: SunSITE.dk - Supporting Open source NNTP-Posting-Host: 213.154.204.74 X-Trace: news.sunsite.dk DXC=CoXEjm5=Mdf`;IS0i7S8TaYSB=nbEKnkkKF?FnbM:[oiS5daR30PdPeV:_8RJBabHm;O^i0GOe`^cQ0@8]fPl=FncPnR5>oVe4o X-Complaints-To: staff@sunsite.dk Xref: g2news1.google.com comp.lang.ada:6207 Date: 2005-11-04T19:45:53+02:00 List-Id: Am 04.11.2005, 04:21 Uhr, schrieb Anonymous Coward : > I'm interested in finding out what the default representation of a > record type is. Can I expect the sequence of elements in the default > representation to match the sequence they are defined in? Whatever works best for the CPU at hand. The compiler has complete freedom for any optimization usefull. He can pack them or align them, reorder - what ever give best perfomace. Or he doesn't do any of that because there is nor record layout optimizer implemented in the Ada compiler of your choice. Also read: http://en.wikibooks.org/wiki/Ada_Programming/Types/record#With_aliased_elements Martn