comp.lang.ada
 help / color / mirror / Atom feed
From: jjjensen@cybernet.dk (Jens Jakob Jensen)
Subject: Re: Linking an ADA routine to a program written in C
Date: 1996/09/26
Date: 1996-09-26T00:00:00+00:00	[thread overview]
Message-ID: <F9cSyExFEysM086yn@cybernet.dk> (raw)
In-Reply-To: 51p2vu$enf@lal.interserv.com


In article <COMAR.96Sep24165621@dantes.enst.fr>,
comar@dantes.enst.fr (Cyrille Comar) wrote:
[snip]
>(Ada 95). Interfacing with most other
>languages is not implementation-defined anymore. This is perfectly
>well defined in the R.M. See description of pragma Import/Export and
>definition of standard procedures adainit (for elaboration of the Ada
>part when main is not in Ada) and adafinal (for finalization of the
>same Ada part). All of this is completely standard and implemented as
>required at least in GNAT but most probably in other Ada95 compilers
>as well.
>
>Cyrille

I haven't followed this thread, so I'm sorry if it's off-topic. But I have
long been wondering what the consensus is wrt. finalization and things like
signals, OS-exceptions, C abort() &c.

Should the Runtime go out of its way to finalize things, or should the
programmer write signal handlers, OS-exception handlers, and override
abort() &c ?

Since I am using GNAT under OS/2, where finalization isn't done when a signal
is raised (eg. Ctrl-C/SIG_BREAK) I would be interested in what consensus is
and what other compilers do.

Is it at all possible to _ensure_ that finalization gets done when interfacing
with C ? (when not counting power/hardware failures)

Thanks in advance for any info...

-----------------------------------------------------------------------------
--          jjjensen@cybernet.dk   (current)                               --
-- Jens_Jakob_Jensen@mailhost.net  (permanent, thanks to www.pobox.org.sg) --
-----------------------------------------------------------------------------




  parent reply	other threads:[~1996-09-26  0:00 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-09-18  0:00 Linking an ADA routine to a program written in C newmans
1996-09-18  0:00 ` Larry Kilgallen
1996-09-19  0:00 ` David C. Hoos, Sr.
1996-09-19  0:00   ` Larry Kilgallen
1996-09-20  0:00     ` Calius
1996-09-20  0:00       ` Chris Brand
1996-09-24  0:00   ` Cyrille Comar
1996-09-25  0:00     ` Larry Kilgallen
1996-09-26  0:00 ` Jens Jakob Jensen [this message]
  -- strict thread matches above, loose matches on Subject: below --
1996-09-28  0:00 Robert Dewar
1996-09-28  0:00 ` Larry Kilgallen
1996-10-03  0:00   ` Robert Dewar
1996-10-04  0:00 Larry Kilgallen
1996-10-08  0:00 ` Robert Dewar
replies disabled

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