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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,c98f618755b0ddcc X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news4.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!193.201.147.84.MISMATCH!xlned.com!feeder1.xlned.com!news.netcologne.de!newsfeed-fusi2.netcologne.de!newsfeed.straub-nv.de!feeder.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Charmed Snark Newsgroups: comp.lang.ada Subject: Re: Thinking of using Ada for a job at home. Couple of questions first. Date: Tue, 9 Mar 2010 21:57:12 +0000 (UTC) Organization: The Snarky Insanitorium Message-ID: References: <6ggto5p3g2p58839gdsut6idb2l621nv2c@4ax.com> Injection-Date: Tue, 9 Mar 2010 21:57:12 +0000 (UTC) Injection-Info: feeder.eternal-september.org; posting-host="9f8M0iN5t54V+4DF/iqO8g"; logging-data="31722"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+7QMPL+f5BdgFmGJSa7X6g8cV6vs8xr3E=" User-Agent: Xnews/5.04.25 X-Face: &6@]C2>ZS=NM|HE-^zWuryN#Z/2_.s9E|G&~DRi|sav9{E}XQJb*\_>=a5"q]\%A;5}LKP][1mA{gZ,Q!j Cancel-Lock: sha1:jtw/8xFKcAP25/w7HuPwok+FNhU= Xref: g2news1.google.com comp.lang.ada:9500 Date: 2010-03-09T21:57:12+00:00 List-Id: jonathan expounded in news:dc294dc4-c89d-4cc0-9826-ac2848277771 @o3g2000yqb.googlegroups.com: > On Mar 9, 2:49�pm, Warren Gay 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 > and it wrote the thing for me. Lot's of tedious complications > due to C strings and the like were taken care of. A few things it > did wrong, but not too bad .. even I could fix it. > > Jonathan Hey, that is good news! I'll definitely check it out. Even if you have to run it on several platforms + tweak each one, it would be a great time saver over the present manual process. Warren