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!news3.google.com!newsfeed2.dallas1.level3.net!newsreader1.level3.com!newsfeed1.dallas1.level3.net!news.level3.com!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: Default rep specs for record types - documented?? Date: 4 Nov 2005 15:42:11 -0600 Organization: LJK Software Message-ID: References: <1131118073.282094.236790@f14g2000cwb.googlegroups.com> NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1131140444 5305 192.135.80.34 (4 Nov 2005 21:40:44 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Fri, 4 Nov 2005 21:40:44 +0000 (UTC) Xref: g2news1.google.com comp.lang.ada:6215 Date: 2005-11-04T15:42:11-06:00 List-Id: In article , Lauri Ora writes: > On 2005-11-04, Britt Snodgrass wrote: >> Starting with version 4.2 I believe, the Apex Ada editor has a "Build >> Rep Clauses" feature that will insert all applicable compiler generated >> confirming representation clauses following a type declaration. I've >> tried it with Apex NT 4.2.0c and it works nicely. > > Some versions of GNAT also has option -gnatR1 (List rep info), which > gives you similar output: > for Record_Type'Size use 48; > for Record_Type'Alignment use 2; > for Record_Type use record > Field_0 at 0 range 0 .. 15; > Field_1 at 2 range 0 .. 15; > Field_2 at 4 range 0 .. 15; > end record; On VMS, one uses the SDL freeware tool, since for system data structures it produces layouts matching the layouts for other languages.