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!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!cyclone1.gnilink.net!spamkiller2.gnilink.net!gnilink.net!trndny02.POSTED!c2bfcbcf!not-for-mail Subject: Re: Default rep specs for record types - documented?? Newsgroups: comp.lang.ada References: <1131118073.282094.236790@f14g2000cwb.googlegroups.com> From: "Ed Falis" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: User-Agent: Opera M2/8.50 (Linux, build 1358) Date: Sat, 05 Nov 2005 03:27:57 GMT NNTP-Posting-Host: 70.22.146.126 X-Complaints-To: abuse@verizon.net X-Trace: trndny02 1131161277 70.22.146.126 (Fri, 04 Nov 2005 22:27:57 EST) NNTP-Posting-Date: Fri, 04 Nov 2005 22:27:57 EST Xref: g2news1.google.com comp.lang.ada:6222 Date: 2005-11-05T03:27:57+00:00 List-Id: On Fri, 04 Nov 2005 21:26:49 -0500, Anonymous Coward wrote: > In article , Lauri Ora wrote: >> >> Some versions of GNAT also has option -gnatR1 (List rep info), which >> gives you similar output: > > That is a very useful option. I wish I had known about it sooner. Is > there a similar switch for C code? It would make interface coding so > much easier if I could generate this output for C types before > constructing the corrosponding ADA interface. But if you order the components the same in both languages, and use pragma Convention (C, ...) on the Ada side, the Ada record layout will match the C struct layout. - Ed