comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey Creem" <jeff@thecreems.com>
Subject: Re: rendez-vous underlying mechanism
Date: Tue, 26 Mar 2002 02:16:33 GMT
Date: 2002-03-26T02:16:33+00:00	[thread overview]
Message-ID: <5SQn8.8480$oE5.2957990@typhoon.ne.ipsvc.net> (raw)
In-Reply-To: 3c9fcb98$1_1@news.tm.net.my

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" <mailbox@*nospam*adrianhoe.com> 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
>





  reply	other threads:[~2002-03-26  2:16 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-25 13:48 rendez-vous underlying mechanism Bozo
2002-03-25 20:09 ` Marin David Condic
2002-03-26  1:44 ` Adrian Hoe
2002-03-26  1:16   ` Jeffrey Creem
2002-03-26  2:05   ` Adrian Hoe
2002-03-26  2:16     ` Jeffrey Creem [this message]
2002-03-26  6:04   ` Simon Wright
2002-03-26 10:17     ` Adrian Hoe
2002-03-26  9:31       ` tgingold
2002-03-26 10:40       ` David C. Hoos, Sr.
2002-03-27  1:42       ` Adrian Hoe
     [not found]     ` <a8olf7$enj$3@nntp9.atl.mindspring.net>
2002-04-07  6:44       ` Pascal Obry
2002-04-08  7:48       ` Jean-Pierre Rosen
2002-03-26 10:58 ` Bozo
2002-03-26 14:10   ` Marin David Condic
2002-03-26 14:57   ` Kevin Cline
2002-03-28  5:20     ` Richard Riehle
2002-03-28 15:44       ` Marin David Condic
2002-04-08 17:05       ` Kevin Cline
2002-04-10  7:49         ` Ole-Hjalmar Kristensen
2002-04-10 13:39         ` Pat Rogers
2002-04-10 17:19           ` Kevin Cline
2002-04-10 17:23             ` Pat Rogers
2002-04-11 11:52               ` Ole-Hjalmar Kristensen
2002-04-11 16:01                 ` Darren New
2002-04-10 17:58             ` Marin David Condic
replies disabled

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