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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c2dda499a002ec3c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-25 18:19:56 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!207.217.77.43.MISMATCH!newsfeed1.earthlink.net!newsfeed.earthlink.net!news-out.visi.com!hermes.visi.com!nnxp1.twtelecom.net!news-east.rr.com!chnws02.ne.ipsvc.net!cyclone.ne.ipsvc.net!24.128.8.70!typhoon.ne.ipsvc.net.POSTED!not-for-mail From: "Jeffrey Creem" Newsgroups: comp.lang.ada References: <3c9fc639_2@news.tm.net.my> <3c9fcb98$1_1@news.tm.net.my> Subject: Re: rendez-vous underlying mechanism X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: <5SQn8.8480$oE5.2957990@typhoon.ne.ipsvc.net> Date: Tue, 26 Mar 2002 02:16:33 GMT NNTP-Posting-Host: 66.31.5.146 X-Complaints-To: abuse@mediaone.net X-Trace: typhoon.ne.ipsvc.net 1017108993 66.31.5.146 (Mon, 25 Mar 2002 21:16:33 EST) NNTP-Posting-Date: Mon, 25 Mar 2002 21:16:33 EST Organization: ATT Broadband Xref: archiver1.google.com comp.lang.ada:21668 Date: 2002-03-26T02:16:33+00:00 List-Id: cpp is the c-preprocessor.. cc1 is that C compiler "main" You can delete both of them and still compile, link and run an Ada program. (if you are going to "try this at home", please don't really delete them ;) In any case, GNAT does not translate your code to C. I've spent more of my free time than I care to admit looking at GNAT source code (for fun only). Don't take my word for it. Take Rober Dewar's word. He knows a little bit about the internals of GNAT :) http://groups.google.com/groups?q=gnat+translate+code+C+dewar&hl=en&lr=lang_ en&selm=dewar.888332671%40merv&rnum=1 http://groups.google.com/groups?q=gnat+translate+code+C+dewar&hl=en&lr=lang_ en&selm=5ee5b646.0108161722.2bf90e39%40posting.google.com&rnum=3 http://groups.google.com/groups?q=gnat+translate+code+C+dewar&hl=en&lr=lang_ en&selm=dewar.822772377%40schonberg&rnum=4 I am sure I can find a few more references.. In any case, it is a popular misconception probably caused by the original Acronym and the old method of the binder producing a single C file. "Adrian Hoe" wrote in message news:3c9fcb98$1_1@news.tm.net.my... > Adrian Hoe wrote: > > > > Bozo wrote: > > > > > > Hi all, > > > > > > I'm jus wondering how a rendez-vous is done internally. I'd like to do > > > something resembling a rendez-vous in C and that would help me. > > > > > > Thanks > > > > Why C? Ada allows you to define tasks explicitly compare to C. GNAT is > > actually "translating" Ada to C. So, you can use GNAT to generate C code > > and then examine it. I can't actually remember how to have the C > > translation. I had it once some time ago after an incomplete > > installation of GNAT. :) > > > Look for two files, "cc1" and "cpp" in your GNAT installation directory > (eg. /usr/lib/gcc-lib/i386-Ada-linux/2.8.1 on my box). I believe one of > them actually translate or pre-process Ada source to C. > > I don't have the time to hack GNAT source to verify this. This is just a > pointer from my faint experience. After all I don't bother to translate > Ada to C. :) > -- > Remove *nospam* to e-mail me. -- Adrian Hoe > -- http://adrianhoe.com >