comp.lang.ada
 help / color / mirror / Atom feed
* C++ to Ada 95 "thin" binding generator?
@ 1996-02-20  0:00 Matthew Phillips
  1996-02-21  0:00 ` Robert Dewar
  1996-02-21  0:00 ` Mitch Gart
  0 siblings, 2 replies; 4+ messages in thread
From: Matthew Phillips @ 1996-02-20  0:00 UTC (permalink / raw)


Hi all,

I am a proponent of Ada 95, but I also realise that there is a LOT of
C++ code out there.  One thing that has occurred to me is that an
automatic C++ to Ada 95 "thin" binding generator would allow a lot of
C++ code to be used from within Ada 95 programs.  It wouldn't be as
good as having a hand-coded binding, but at least it would mean we
don't miss out on some of the good C++ libraries out there.

I've looked at the FAQ's and various web pages and drawn a blank.
Does anyone know of such a utility or of someone that is working on
one?  Any help much appreciated,

MPP.

-- 
 Matthew Phillips <mathew.phillips@dsto.defence.gov.au>
 Defence Science and Technology Organisation,
 Salisbury, SOUTH AUSTRALIA
 Ph: +61 08 259 6236            Fax: +61 08 259 5589




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: C++ to Ada 95 "thin" binding generator?
  1996-02-20  0:00 C++ to Ada 95 "thin" binding generator? Matthew Phillips
@ 1996-02-21  0:00 ` Robert Dewar
  1996-02-26  0:00   ` Scott Leschke
  1996-02-21  0:00 ` Mitch Gart
  1 sibling, 1 reply; 4+ messages in thread
From: Robert Dewar @ 1996-02-21  0:00 UTC (permalink / raw)


Matthew says

"I am a proponent of Ada 95, but I also realise that there is a LOT of
C++ code out there.  One thing that has occurred to me is that an
automatic C++ to Ada 95 "thin" binding generator would allow a lot of
C++ code to be used from within Ada 95 programs.  It wouldn't be as
good as having a hand-coded binding, but at least it would mean we
don't miss out on some of the good C++ libraries out there."

There are two issues here.

First you need to architect the Ada 95 compiler so that interface to
C++ is smooth.

GNAT implements a number of pragmas for this purpose, and when these
pragmas are used, it is possible to map Ada tagged types exactly into
C++ classes.

So this is the raw material for a C++ interface, then you need a binding
generator.

SGI currently has developed such a tool internally, which they have used
to provide bindings for many of their large libraries such as Inventor,
but they have not yet released this tool for external use (it is still
under development).





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: C++ to Ada 95 "thin" binding generator?
  1996-02-20  0:00 C++ to Ada 95 "thin" binding generator? Matthew Phillips
  1996-02-21  0:00 ` Robert Dewar
@ 1996-02-21  0:00 ` Mitch Gart
  1 sibling, 0 replies; 4+ messages in thread
From: Mitch Gart @ 1996-02-21  0:00 UTC (permalink / raw)


At TriAda '95 there was a presentation by Tom Quiggle of Silicon
Graphics about "adabindgen", a binding generator tool that does
about what you described.  There was no paper in the conference
proceedings, just a presentation about this tool, which was a 
"work in progress" and not yet a released product.  You might
try sending a message to Tom at quiggle@lovelace.wpd.sgi.com.




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: C++ to Ada 95 "thin" binding generator?
  1996-02-21  0:00 ` Robert Dewar
@ 1996-02-26  0:00   ` Scott Leschke
  0 siblings, 0 replies; 4+ messages in thread
From: Scott Leschke @ 1996-02-26  0:00 UTC (permalink / raw)


dewar@cs.nyu.edu (Robert Dewar) writes:

>SGI currently has developed such a tool internally, which they have used
>to provide bindings for many of their large libraries such as Inventor,
>but they have not yet released this tool for external use (it is still
>under development).

Might anybody know if SGI intends to release this to the public domain or
make this part of their commercial environment?
-- 
-----------------------------------------------------------------------
Scott Leschke..................................ph: 708-632-2786
Motorola, Inc.................................fax: 708-632-3145
Cellular Infrastructure Group...............email: leschkes@cig.mot.com




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1996-02-26  0:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-02-20  0:00 C++ to Ada 95 "thin" binding generator? Matthew Phillips
1996-02-21  0:00 ` Robert Dewar
1996-02-26  0:00   ` Scott Leschke
1996-02-21  0:00 ` Mitch Gart

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