comp.lang.ada
 help / color / mirror / Atom feed
From: stt@henning.camb.inmet.com (Tucker Taft)
Subject: Re: Including Ada objects in non-Ada  environments
Date: Tue, 28 Feb 1995 21:46:23 GMT
Date: 1995-02-28T21:46:23+00:00	[thread overview]
Message-ID: <D4qCHC.BoL@inmet.camb.inmet.com> (raw)
In-Reply-To: 1995Feb24.103759.22892@nntp.brisnet.org.au

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.



      reply	other threads:[~1995-02-28 21:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-02-24 10:37 Including Ada objects in non-Ada environments Daneil Wengelin
1995-02-28 21:46 ` Tucker Taft [this message]
replies disabled

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