From: Chris Morgan <cm@mihalis.net>
Subject: Re: Catching Ada exceptions in C on an SGI
Date: 16 Oct 2001 16:22:19 -0400
Date: 2001-10-16T16:22:19-04:00 [thread overview]
Message-ID: <867ktvwd1g.fsf@mihalis.net> (raw)
In-Reply-To: GLBEA4.7FF@news.boeing.com
"Dale Pennington" <Dale.K.Pennington@boeing.com> writes:
> > Wrap the functions in Ada, catch exceptions in the wrappers, and call
> > them from C.
>
> I think that may be where I am heading, as I cannot do it in C and C++ (I
> have tried with no success). Of course this means convincing my boss to let
> me load GNAT onto our development machine, which will take some work (he is
> a C person).
You can install and use GNAT in your own account without disturbing
anyone elses gcc, and without root privilege. That's enough to at
least try it.
>
> One thing I would like to check. The current Ada library already exports
> adainit and adafinal. So this new wrapped library obviously cannot use the
> same symbols for its init and final. Would the method be to run the bind
> function, then edit the result .ads and .adb for my own name before
> gnatmakeing and linking it ?
That might work, there may be a better way - check the GNAT
manuals. adainit and adafinal are just made up names (although
possibly emitted by tools) you could change them to be wrapperinit and
wrapperfinal I would guess.
good luck
--
Chris Morgan
next prev parent reply other threads:[~2001-10-16 20:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-16 17:19 Catching Ada exceptions in C on an SGI Dale Pennington
2001-10-16 18:48 ` Chris Morgan
2001-10-16 20:01 ` Dale Pennington
2001-10-16 20:22 ` Chris Morgan [this message]
2001-10-17 11:40 ` Marc A. Criley
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox