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=-0.1 required=5.0 tests=AXB_XMAILER_MIMEOLE_OL_024C2, BAYES_00,MAILING_LIST_MULTI,REPLYTO_WITHOUT_TO_CC autolearn=no 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-26 02:42:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!fr.usenet-edu.net!usenet-edu.net!enst!enst.fr!not-for-mail From: "David C. Hoos, Sr." Newsgroups: comp.lang.ada Subject: Re: rendez-vous underlying mechanism Date: Tue, 26 Mar 2002 04:40:48 -0600 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: References: <3c9fc639_2@news.tm.net.my> <3ca03f16$1_2@news.tm.net.my> Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1017139322 91823 137.194.161.2 (26 Mar 2002 10:42:02 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Tue, 26 Mar 2002 10:42:02 +0000 (UTC) Return-Path: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:21681 Date: 2002-03-26T04:40:48-06:00 When building a program with older versions of GNAT, you would get a C file produced by the gnatbind step. E.g., if your main program was in hello.adb, the file produced would be named b_hello.c If you built with the -g option, the C file and its object would be retained -- if not, they were deleted. But, know also, that in such a case, there would be both a hello.o and a b_hello.o file in your directory. In more recent versions of GNAT, the bind file can be generated in either Ada or C (the default is Ada). In the case of Ada bind files, there is both a spec and a body, files named b~hello.ads, and b~hello.adb, for a hello.adb main program. All of this is thoroughly documented in the GNAT User's Guide, along with an explanation of the content and purpose of these files. I have been using GNAT since 3.04, and at no time ever was any Ada code translated to C, by any of these versions. ----- Original Message ----- From: "Adrian Hoe" Newsgroups: comp.lang.ada To: Sent: March 26, 2002 4:17 AM Subject: Re: rendez-vous underlying mechanism > Simon Wright wrote: > > > > Adrian Hoe writes: > > > > > 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. :) > > > > Very mysterious, GNAT has never translated to C. You can see the > > _assembler_ output using -S (like most? all? GCC compilers). > > > > If you are using GNAT, why not look at the RTS source? (mostly in Ada). > > > Strange. I got a C file somehow produced by GNAT which I did not > properly installed. It was 3.10 if I remember correctly. At that time I > was just trying to compile a simple "Hello World" program. My memory > could serve me wrong but I am damned sure I got a C source file in my > test directory which contained only an .adb file. > -- > Remove *nospam* to e-mail me. -- Adrian Hoe > -- http://adrianhoe.com > _______________________________________________ > comp.lang.ada mailing list > comp.lang.ada@ada.eu.org > http://ada.eu.org/mailman/listinfo/comp.lang.ada > >