comp.lang.ada
 help / color / mirror / Atom feed
From: jonathan <johnscpg@googlemail.com>
Subject: Re: Thinking of using Ada for a job at home. Couple of questions first.
Date: Wed, 10 Mar 2010 11:12:46 -0800 (PST)
Date: 2010-03-10T11:12:46-08:00	[thread overview]
Message-ID: <702a86a8-1753-4882-bde5-b0c3cc835a20@19g2000yqu.googlegroups.com> (raw)
In-Reply-To: Xns9D3781E56309FSnarkCharmedImSure@188.40.43.213

On Mar 10, 5:46 pm, Charmed Snark <sn...@cogeco.ca> wrote:
> jonathan expounded in news:49fb3586-981d-46a8-a023-f43c8fa47c36
> @t23g2000yqt.googlegroups.com:
>
>
>
>
>
> > On Mar 9, 9:57 pm, Charmed Snark <sn...@cogeco.ca> wrote:
> >> jonathan expounded in news:dc294dc4-c89d-4cc0-9826-ac2848277771
> >> @o3g2000yqb.googlegroups.com:
> >> > On Mar 9, 2:49 pm, Warren Gay <ve3...@gmail.com> wrote:
> >> >> This is the one main issue that made me give up on Ada a few
> >> >> years back. It seemed that every project that I wanted
> >> >> to do, required me to create a "binding" for this and
> >> >> another for that. Sing "It's a C/C++ world after all".
> >> ..
> >> >> Another approach might be to create a "binding translator".
> >> >> Feed a C/C++ preprocessed output into the translator and
> >> >> crank out some ugly but functional package(s).
> >> > Some more detail on the AdaCore binding translator Jacob mentioned
> ...
> >> > Recently I decided I wanted a binding to C package, googled for
> >> > a tutorial, and found gem 59 and gem 60
>
> >> >http://www.adacore.com/2009/02/23/gem-59/
>
> >> > Thanks AdaCore! I couldn't have written a binding myself even
> >> > in the easiest limit. All I did was type (iirc)
> >> > g++ -c -fdump-ada-spec -C file_name.h
> >> > Jonathan
>
> >> Hey, that is good news! I'll definitely check it out.
> >> Warren
>
> > I should add that I did not put it to a severe test.
> > The binding it created was 22 files, about 1500 semicolons.
> > I trimmed it to 1 file, 26 semicolons in length to get
> > my program working.  It would have been more work
> > to fix everything (though once you figure out what can
> > go wrong its not as hard).
>
> > Jonathan
>
> I do most of my work under cygwin (laptop) since that is
> what I have with me on the road and at work. But the current
> cygwin versions don't seem to support -fdump-ada-spec.
>
> But hopefully someday, it'll be everywhere.
>
> Warren

I used the GNAT GPL for Linux.  There are several
GPL versions for Windows, but I don't know how they
will interact with cygwin.

https://libre.adacore.com/libre/download/

To start, I just registered, installed in /tmp, and
tried it out to see if it worked. I am looking forward
to the 2010 version!

Jonathan




  reply	other threads:[~2010-03-10 19:12 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-03 16:19 Thinking of using Ada for a job at home. Couple of questions first John McCabe
2010-03-03 18:22 ` Jeffrey R. Carter
2010-03-03 20:09   ` John McCabe
2010-03-03 21:00     ` Simon Wright
2010-03-03 18:58 ` Hibou57 (Yannick Duchêne)
2010-03-03 20:17   ` John McCabe
2010-03-04  6:22     ` Hibou57 (Yannick Duchêne)
2010-03-04 11:39       ` John McCabe
2010-03-09 14:49         ` Warren Gay
2010-03-09 15:33           ` Jacob Sparre Andersen
2010-03-09 20:22           ` jonathan
2010-03-09 21:57             ` Charmed Snark
2010-03-09 22:54               ` jonathan
2010-03-10 17:46                 ` Charmed Snark
2010-03-10 19:12                   ` jonathan [this message]
2010-03-10 20:41                     ` Simon Wright
2010-03-10 21:00                       ` Pascal Obry
2010-03-09 20:32           ` Simon Wright
2010-03-10  6:42           ` J-P. Rosen
2010-03-03 19:17 ` Dmitry A. Kazakov
2010-03-03 20:38   ` John McCabe
2010-03-03 20:56     ` Simon Wright
2010-03-03 21:00       ` John McCabe
2010-03-03 21:10         ` John McCabe
2010-03-04  6:39         ` Hibou57 (Yannick Duchêne)
2010-03-03 21:35       ` tmoran
2010-03-04  6:43         ` Hibou57 (Yannick Duchêne)
2010-03-03 22:20     ` Dmitry A. Kazakov
2010-03-03 19:52 ` Gautier write-only
2010-03-03 20:57   ` John McCabe
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox