comp.lang.ada
 help / color / mirror / Atom feed
From: Scott Ingram <scott@silver.jhuapl.edu>
Subject: Re: Mixing Cygnus & Gnat compilers on the same machine
Date: Mon, 23 Apr 2001 12:29:09 -0400
Date: 2001-04-23T16:29:09+00:00	[thread overview]
Message-ID: <3AE45854.DA5ECDC3@silver.jhuapl.edu> (raw)
In-Reply-To: 9c1gmg$p55$1@nh.pace.co.uk

Marin David Condic wrote:
> 
> Well, the problem is that we already have a Cygnus compiler targeted to our
> MIPS machine - and not being the guy who handles that particular part of the
> deal I don't know if it is a "pure" MIPS thingie or if maybe there have been
> some customizations for our machine. (I'm pretty sure we already have a
> support contract with Cygnus on this.)

There are some weird and wonderful things that can be done with gcc. 
For example
it is relatively easy to have two or more versions of gcc in the same
tree.  (Examine
the "-V" option.)  Unfortunately, this is where the merge of the sources
becomes
important...the 2.9x versions of gcc are not Ada aware, so it makes no
sense to use
this particular feature.

I think customizations for your platform are unlikely (can't be ruled
out of course,)
but building a cross compiler for a supported platform is relatively
trivial.  As Stephe
notes, it does require following the directions very carefully.

Have you built gnat from sources?  I am certainly willing to help if you
need to.

> 
> No, I'm not in a position to fire Cygnus and hire ACT and I can't dictate
> that all new development be done in Ada. I was actually hoping for a
> "back-door" approach to it. If GNAT and the Gnu distribution of gcc get
> merged, there's some chance that the Ada front-end might at some point find
> its way into the Cygnus version that we are using. (Yes, I realize it won't
> happen by osmosis - I'm not totally dim! :-) Someone at Cygnus has to think
> this is worth doing.) That makes it possible for me to build some clever
> sideline things for the embedded computer in Ada. Suddenly, Ada becomes part
> of what we do and perhaps this causes some conversions to take place in the
> hearts and minds of other developers here. Its sneaky and underhanded, but
> often very effective!

When they get merged, the source will be available in your distribution
from
Cygnus.  Since you are using gcc, I presume that there is no requirement
for
a validated compiler to start with.  In that case it simply becomes a
matter
of rebuilding the compiler.  (Unless you are also using g++, which is
problematic
but not insurmountable.)  Unless there is some requirement for you to
NOT rebuild
the compiler...but then we run into a management issue that will have to
be
resolved somehow.

> 
> My observation here is that what I want to do isn't simply be able to
> generate code for a MIPS processor. Ada for MIPS has been available from a
> number of sources for some time. The problem is one of getting Ada
> introduced into an organization and that can require specific paths be
> taken.
> 

I think the issue here is "specific paths."  Technically there is no
difficulty
mixing the compilers, or even mixing objects generated by the current
versions...
perhaps you could elaborate?

> MDC
> --

-- 
Scott Ingram
Vice-Chair, Baltimore SIGAda
Sonar Processing and Analysis Laboratory
Johns Hopkins University Applied Physics Laboratory



  reply	other threads:[~2001-04-23 16:29 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-18 15:50 Mixing Cygnus & Gnat compilers on the same machine Marin David Condic
2001-04-18 19:10 ` Simon Wright
2001-04-18 19:44 ` Gerhard Häring
2001-04-18 20:22   ` Marin David Condic
2001-04-19  2:18     ` Gerhard Häring
2001-04-19  4:20       ` David Starner
2001-04-19 13:13       ` Larry Kilgallen
2001-04-19 13:44         ` Marin David Condic
2001-04-19 13:34       ` Marin David Condic
2001-04-19 16:07         ` Marin David Condic
2001-04-25 18:12           ` Marin David Condic
2001-04-25 19:53             ` Sune Falck
2001-04-25 20:51               ` Marin David Condic
2001-04-19 19:53         ` Marc A. Criley
2001-04-19 20:59           ` Marin David Condic
2001-04-20  0:23         ` Ben Brosgol
2001-04-20 14:01           ` Marin David Condic
2001-04-20 14:45             ` Jean-Pierre Rosen
2001-04-20 15:08             ` Tarjei T. Jensen
2001-04-20 22:27             ` Stephen Leake
2001-04-23 15:11               ` Marin David Condic
2001-04-23 16:29                 ` Scott Ingram [this message]
2001-04-23 18:44                   ` Marin David Condic
2001-04-23 19:26                     ` Ted Dennison
2001-04-24 13:40                       ` Marin David Condic
2001-04-23 18:50                   ` David Starner
2001-04-23 19:03         ` Matthias Andree
2001-04-24 13:58           ` Marin David Condic
2001-04-24 16:55             ` David Starner
2001-04-25  7:42               ` Pascal Obry
2001-04-25 19:11                 ` David Starner
2001-04-24 17:43           ` Ted Dennison
2001-04-25 11:27             ` Matthias Andree
replies disabled

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