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,c040f2e7ff8ceded X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1995-02-28 13:46:23 PST Newsgroups: comp.lang.ada Path: nntp.gmd.de!newsserver.jvnc.net!news.cac.psu.edu!news.pop.psu.edu!hudson.lm.com!godot.cc.duq.edu!news.duke.edu!news-feed-1.peachnet.edu!paperboy.wellfleet.com!noc.near.net!inmet!henning!stt From: stt@henning.camb.inmet.com (Tucker Taft) Subject: Re: Including Ada objects in non-Ada environments Message-ID: Sender: news@inmet.camb.inmet.com Organization: Intermetrics, Inc. X-Newsreader: TIN [version 1.1 PL8] References: <1995Feb24.103759.22892@nntp.brisnet.org.au> Date: Tue, 28 Feb 1995 21:46:23 GMT Date: 1995-02-28T21:46:23+00:00 List-Id: Daneil Wengelin (wengelin@ozspace.brisnet.org.au) wrote: : I want to be able to generate object code with my Ada compiler : to be included in another language. The standard way is to re- : quire that the executable is liked using the APSE linker to : get the Ada Run-Time included in the executable. : ... : Why could not the compiler provide a facility to make objects : self-contained somehow? Could one imagine a mini-RTS that would : just provide the symbols the code generator inserts, without : the other stuff, given some restrictions on the source, e.g. the : keywords "task", "accept", etc are invalid?? Ada 95 compilers are encouraged to provide support for the "main" routine being written in something other than Ada. This could presumably help with your problem. Note that similar problems will occur in any language with a non-trivial RTS (e.g. C++, Lisp, Smalltalk, even Fortran in some implementations). In any case, this is a very reasonable thing to request of your implementor, and they might already have a solution. Probably you should check with them. Alternatively, give GNAT a try. It uses the standard C runtime routines as much as possible, presumably minimizing the problem. : For any practical hints: we're running Apex 1.4.4. on Solaris 2.3. : -- Daniel Wengelin -- Team Ada, the best 0$ mem- -- : -- CelsiusTech -- bership fee you'll ever spend -- : -- dawe@celsiustech.se -- -- : -- wengelin@ozspace.brisnet.org.au -- -- -Tucker Taft stt@inmet.com Intermetrics, Inc.