comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Gnat 3.15p pragma issues
Date: 03 Nov 2005 18:00:17 -0500
Date: 2005-11-03T18:00:17-05:00	[thread overview]
Message-ID: <wcc7jbpgwvy.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: 1131029395.700984.154230@f14g2000cwb.googlegroups.com

"Erik Woulfe" <DMBTonic@AOL.com> writes:

> I am attempting to move a large amount of code from an Apex compiler
> system to the Gnat 3.15p compiler in order to gain more flexibility in
> mutli-language code interaction (namely between C++ and Ada). One of
> the problems that I encounter when making this move is that the Gnat
> compiler does not recognize many of the pragma statements that Apex had
> no problems with. However, I do not think that any/all of these are
> Apex specific, such as pragma "Inline" and pragma "Not_Elaborated". Has
> anyone had any experience with having common pragmas not being
> recognized?

Pragma Inline is defined by the language.  Not_Elaborated is
implementation defined.  There is a list of language-defined pragmas in
the back of the RM.  To know whether it's safe to simply delete
implementation-defined pragmas, you'll have to look at the Apex
documentation.  Some pragmas are "merely" optimization hints,
for example.

>... Am I perhaps not referencing the correct libraries in my
> gnatmake call?

No, that probably has nothing to do with it.

- Bob



  parent reply	other threads:[~2005-11-03 23:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-03 15:03 Gnat 3.15p pragma issues Erik Woulfe
2005-11-03 16:00 ` Colin Paul Gloster
2005-11-03 22:56   ` Robert A Duff
2005-11-04  2:12     ` pragma Convention ignored (sometimes) Anonymous Coward
2005-11-04  5:19       ` Jeffrey R. Carter
2005-11-05  2:54         ` Justin Gombos
2005-11-03 17:42 ` Gnat 3.15p pragma issues Gautier Write-only
2005-11-03 23:00 ` Robert A Duff [this message]
2005-11-04  2:51 ` Steve
2005-11-04 13:02 ` Stephen Leake
replies disabled

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