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 17:18:26 PST Date: Tue, 26 Mar 2002 10:05:15 +0800 From: Adrian Hoe Organization: AdrianHoe.com X-Mailer: Mozilla 4.7C-CCK-MCD Caldera Systems OpenLinux [en] (X11; I; Linux 2.2.10 i586) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: rendez-vous underlying mechanism References: <3c9fc639_2@news.tm.net.my> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: mlk-172-68.tm.net.my X-Original-NNTP-Posting-Host: mlk-172-68.tm.net.my Message-ID: <3c9fcb98$1_1@news.tm.net.my> X-Trace: news.tm.net.my 1017105304 mlk-172-68.tm.net.my (26 Mar 2002 09:15:04 +0800) Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.abs.net!newsfeed.cwix.com!news1.tm.net.my Xref: archiver1.google.com comp.lang.ada:21665 Date: 2002-03-26T10:05:15+08:00 List-Id: 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