comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Compiling FSF GNAT standalone?
Date: Sun, 29 Jul 2012 12:11:43 +0100
Date: 2012-07-29T12:11:43+01:00	[thread overview]
Message-ID: <m2a9yiq0sw.fsf@nidhoggr.home> (raw)
In-Reply-To: 970bce81-a038-46d4-91f0-46a6c76986e9@googlegroups.com

Patrick <patrick@spellingbeewinnars.org> writes:

> If I call gnatmake, it will call GCC eventually, so I supposed the
> term freestanding GNAT is false. However if I call gnatpp then it is
> not going to call GCC and there is no way to call gnatpp from GCC so I
> guess GNAT is not completely dependent on GCC. I would like to build
> GNAT from source to be able to call gnatpp. I thought it would also be
> interesting to try to compile it with a cross compiler so that it
> could be used on other architectures.

gnatpp is an application written in Ada using AdaCore's ASIS
implementation.

GNAT's ASIS is (a) a library which provides access to information about
source programs which can be output by the front-end of the GNAT
compiler, (b) a set of tools built to use ASIS to allow various kinds of
processing on source programs. gnatpp is one of these.

gnatpp's source is not part of the GCC source tree, ie not part of FSF
GCC, any more than GNAT ASIS is. You have access to the source for both
as part of the GNAT GPL distribution: look under ASIS. You ought to be
able to build GNAT GPL 2012 ASIS (library and tools) using the GNAT GPL
2012 compiler.

The compiler and ASIS are highy coupled, so building GNAT GPL 2012 ASIS
using the Debian compiler suite requires workrounds (I wrote about this,
for Mac OS X & GCC 4.6, at [1]); but I see that Debian 6 has various ASIS
packages, including asis-programs, which includes gnatpp.

gnatpp is not called from GCC. It can be called from GPS (again, not
part of GCC).

[1] http://forward-in-code.blogspot.co.uk/2011/10/building-asis.html



  reply	other threads:[~2012-08-01  2:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-28 23:31 Compiling FSF GNAT standalone? Patrick
2012-07-29  0:05 ` Patrick
2012-07-29 11:11   ` Simon Wright [this message]
2012-07-29 12:17     ` Patrick
2012-07-29 13:43       ` Ludovic Brenta
2012-07-29 14:08       ` Simon Wright
2012-07-29 15:34         ` Patrick
replies disabled

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