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,b7f989b91317be82,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-04-25 07:38:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!postnews1.google.com!not-for-mail From: michael.p.card@lmco.com (Michael P. Card) Newsgroups: comp.lang.ada Subject: GNAT equivalent for Green Hills functionality Date: 25 Apr 2002 07:38:04 -0700 Organization: http://groups.google.com/ Message-ID: NNTP-Posting-Host: 192.91.146.35 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1019745484 4616 127.0.0.1 (25 Apr 2002 14:38:04 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 25 Apr 2002 14:38:04 GMT Xref: archiver1.google.com comp.lang.ada:23106 Date: 2002-04-25T14:38:04+00:00 List-Id: Hello CLA- In the past I have developed heterogenous programs comprised of Ada and C++ code linked together. These projects involved the use of gcc for the C++ and Green Hills AdaMULTI for the Ada code. For cases where C++ was the "main" program, Gren Hills provided 3 C functions that made the integration much easier: rts_task_init()- registers a C thread with Ada run-time so that after this call Ada will see it as if it were an Ada task. This way the C code can call Ada code that might make a protected object call, task rendezvous etc and teh C thread will be suspended and restarted properly just as if it were an Ada task adainit()- kicks off all Ada elaboration, initialization etc just as would happen at program start if Ada were the "main" adafinal()- finalizes all objects just as would occur at end-of-program if Ada were the "main" Does GNAT provide similar capability for cases where C++ is the "main"? Note that it may be that we will be using a C++ compiler other than gcc, I have heard that Ada/C++ integration is easy with GNAT if the C++ code is compiled with gcc. - Mike