comp.lang.ada
 help / color / mirror / Atom feed
From: Tom <tomahawkins@gmail.com>
Subject: Re: Using GNAT in a C and assembly toolchain
Date: Tue, 4 May 2010 22:52:20 -0700 (PDT)
Date: 2010-05-04T22:52:20-07:00	[thread overview]
Message-ID: <a00e0694-9488-47ec-a1c5-eddea31e79ea@k41g2000yqb.googlegroups.com> (raw)
In-Reply-To: m2sk67jvjw.fsf@pushface.org

On May 4, 2:50 pm, Simon Wright <si...@pushface.org> wrote:

> OK, I work on military systems, but my Software Design Authority
> would need A Whole Lot Of Convincing to change the tool chain in a way
> not supported by the tool vendor.

This is strictly prototyping.

>
> > The question is how can I best use Ada and GNAT in such an
> > environment?  One method that comes to mind is to compile Ada to
> > assembly code, which is then passed to GHS for assembling and linking
> > with the closed source OS and HAL.  I don't see an assembly switch,
> > like GCC's -S.  Would this mean I would need the compile Ada modules
> > individually with GCC instead of using gnatmake?  Are there any
> > options to compile Ada down to C by chance?
>
> "gnatmake -c -S foo.adb" compiles the closure of foo to assembler (.s)
> files. Of course these are going to be in GNU assembler, which may or
> may not be that used by GHS.

This will work.  And GHS does indeed read GNU assembly, with minor
post processing.

BTW, I've moved the scripts and patch files used to build the powerpc-
eabi cross compiler to github if anyone's interested:

http://github.com/tomahawkins/powerpc-eabi



      parent reply	other threads:[~2010-05-05  5:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-03 15:04 Building GNAT Tom
2010-05-03 17:03 ` Simon Wright
2010-05-04  5:03   ` Using GNAT in a C and assembly toolchain Tom
2010-05-04 19:50     ` Simon Wright
2010-05-04 22:04       ` Randy Brukardt
2010-05-05  2:10       ` Robert A Duff
2010-05-05  7:54         ` sjw
2010-05-05  5:52       ` Tom [this message]
replies disabled

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