comp.lang.ada
 help / color / mirror / Atom feed
From: Kilgallen@eisner.decus.org.nospam (Larry Kilgallen)
Subject: Re: Make C++ via Ada95/Gnat ?
Date: 16 Aug 2001 04:22:17 -0500
Date: 2001-08-16T04:22:17-05:00	[thread overview]
Message-ID: <HgTnWE+NgZZW@eisner.encompasserve.org> (raw)
In-Reply-To: 9lg0gs$9dv$1@snipp.uninett.no

In article <9lg0gs$9dv$1@snipp.uninett.no>, Reinert Korsnes <Reinert.Korsnes@ffi.no> writes:

> Is it possible/practical to produce C++ code by first making Ada95 code
> and then from this produce C++ (via Gnat) ?  Just a bad idea ?

It should not be possible via GNAT, since GNAT and G++ are two
different front-ends to the same back end.  The fact that GNAT
can emit Java byte code is an anomoly to support the Java byte
code engine as a "target".  GNAT generally emits either machine
code (in ASCII) or assembler code (I don't know which).

> (I would prefer to make/test Ada95 code rather than C++)

Averstar can sell you an Ada compiler that emits ANSI C, which
might be a subset of C++ (for the subset of ANSI C they use).
But since you wanted C++ you probably wanted it to use features
of C++ that are not in C.



  reply	other threads:[~2001-08-16  9:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-16  8:30 Make C++ via Ada95/Gnat ? Reinert Korsnes
2001-08-16  9:22 ` Larry Kilgallen [this message]
2001-08-16 10:36   ` sk
2001-08-16 14:03     ` Larry Kilgallen
2001-08-16 12:01   ` Marc A. Criley
2001-08-17  1:22 ` 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