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: a07f3367d7,5a3e508f74e87110 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news1.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Record representation : components order References: <908a786e-214e-436f-868b-c0ead259fcc5@r33g2000yqn.googlegroups.com> <055e4e4e-94ec-40fb-b317-4f45a579148a@c9g2000yqm.googlegroups.com> <0528ea71-d39b-4c0f-ae70-b632c6b4fbeb@c36g2000yqn.googlegroups.com> From: Stephen Leake Date: Thu, 09 Jul 2009 05:28:59 -0400 Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (windows-nt) Cancel-Lock: sha1:1/UmTyq3oWeO5qfmyR08SX1SEnY= MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: b79834a55b850e9cadf9d09571 Xref: g2news2.google.com comp.lang.ada:6919 Date: 2009-07-09T05:28:59-04:00 List-Id: sjw writes: > On Jul 6, 8:33�am, Stephen Leake > wrote: >> sjw writes: >> > For tcladashell, I have a Tcl script which generates a C program which >> > generates an Ada spec >> >> Recent versions of GNAT have the option -fdump-ada-spec which >> generates Ada specs from C and C++ headers. See chapter 25 in the GNAT >> User Guide. > > Yes, but many people don't have this option yet. Also > > * tcl.h isn't really meant to be read by humans, so Ada code generated > from it has similar characteristics, and I'd rather provide something > I know to be at least semi-readable and compilable; Ok. > * I'm not sure how settled -fdump-ada-spec is yet; Ok. I suppose this could be a standard, defining how various C statements get translated into Ada, but I suspect that would be far more effort than it is worth. So we'll just have to trust AdaCore to do a good job. Since they are motivated by customer needs, I'm not worried :). > * in theory tcladashell is compiler-independent. That's not important. You only need to generate the Ada code once (well, once each time the C code changes); then you can use it with any compiler. So only the tcladashell maintainer/developer needs -fdump-ada-spec. -- -- Stephe