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!newsfeed00.sul.t-online.de!t-online.de!83.128.0.11.MISMATCH!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!fi.sn.net!newsfeed2.fi.sn.net!nntp.inet.fi!inet.fi!feeder1.news.jippii.net!reader1.news.jippii.net!53ab2750!not-for-mail Newsgroups: comp.lang.ada From: Lauri Ora Subject: Re: Default rep specs for record types - documented?? References: <1131118073.282094.236790@f14g2000cwb.googlegroups.com> Message-ID: User-Agent: slrn/0.9.8.1 (Debian) Date: Fri, 04 Nov 2005 15:55:27 GMT NNTP-Posting-Host: 80.74.214.6 X-Complaints-To: newsmaster@saunalahti.com X-Trace: reader1.news.jippii.net 1131119727 80.74.214.6 (Fri, 04 Nov 2005 17:55:27 EET) NNTP-Posting-Date: Fri, 04 Nov 2005 17:55:27 EET Organization: Saunalahti Customer Xref: g2news1.google.com comp.lang.ada:6195 Date: 2005-11-04T15:55:27+00:00 List-Id: 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; Obviously this only gives you the information, and does not touch the source files. But these could be used as a starting point. -Lauri