comp.lang.ada
 help / color / mirror / Atom feed
* Building a GNAT cross compiler
@ 1996-12-31  0:00 Jeff Carter
  1997-01-02  0:00 ` Jeff Creem
  1997-01-07  0:00 ` David L Brown
  0 siblings, 2 replies; 4+ messages in thread
From: Jeff Carter @ 1996-12-31  0:00 UTC (permalink / raw)



I find myself in the position of needing to build a GNAT cross compiler.
While I have a great deal of software engineering and Ada experience, I
have no experience with gcc (except running GNAT) or with compiler
building.

We are targeting a MIPS system under VxWorks, which comes with a gcc C
cross compiler hosted on a Sun Sparc Solaris 2.4 system. VxWorks
includes POSIX interfaces, so that part of the port should not be a
problem. We also have a Solaris self-targeted gcc including GNAT 3.07.
Finally, I have the GNAT 3.07 sources.

When I compile something using the cross compiler with "-v", I get the
following:

/users/carter/mips_test>- gcc -c -v numbers.c
Reading specs from /usr/vw/gnu/lib/gcc-lib/sdebig/2.5.7/specs
gcc version 2.7.2
 /usr/vw/gnu/lib/gcc-lib/sdebig/2.5.7/cpp -lang-c -v -iprefix
/usr/vw/gnu/lib/gcc-lib/sdebig/2.5.7/sparc-sun-solaris2.4/2.7.2/ -undef
-D__GNUC__=2 -D__GNUC_MINOR__=7 -DMIPSEB -D_MIPSEB -D__MIPSEB__
-D_MIPSEB -D__MIPSEB -Asystem(sde) -Acpu(mips) -Acpu(mipseb)
-Aendian(big) numbers.c /var/tmp/cca000Vu.i
GNU CPP version 2.5.7 [AL 1.1, MM 40] Algorithmics SDE-MIPS (big-endian)
#include "..." search starts here:
#include <...> search starts here:
 /usr/vw/gnu/lib/gcc-lib/sdebig/2.5.7/sparc-sun-solaris2.4/2.7.2/include
 /usr/vw/gnu/lib/gcc-lib/sdebig/2.5.7/sparc-sun-solaris2.4/2.7.2/sys-include
 /folk/will/algor/sde/lib/gcc-lib/sdebig/2.5.7/include
 /folk/will/algor/sde/lib/gcc-lib/sdebig/2.5.7/sys-include
 /folk/will/algor/sde/sdebig/include
End of search list.
 /usr/vw/gnu/lib/gcc-lib/sdebig/2.5.7/cc1 /var/tmp/cca000Vu.i -quiet
-dumpbase numbers.c -version -o /var/tmp/cca000Vu.s
GNU C version 2.5.7 [AL 1.1, MM 40] Algorithmics SDE-MIPS (big-endian)
compiled by GNU C version 2.5.8.
 /usr/vw/gnu/lib/gcc-lib/sdebig/2.5.7/as -EB -v -o numbers.o
/var/tmp/cca000Vu.s
Algorithmics MIPS Assembler (version 1.4)

from which I conclude that the cross compiler is gcc 2.7.2.

What I'd like to do is add GNAT capability to the existing cross
compiler. The documentation with the GNAT sources talks about building
GNAT to update an existing version of GNAT, and doesn't seem to apply to
what I'm doing.

We're doing this primarily for compiler evaluation, since we have the
MIPS platform. Our intended target will be a PowerPC under VxWorks, but
it will be a while before we get one in. I assume the port to the
PowerPC will be quite similar to the port to MIPS, since VxWorks will
include the gcc cross compiler.

If anyone has any experience to share with me, or can point me to any
better documentation, I would appreciate it.

Thank you.
-- 
Jeff Carter
Innovative Concepts, Inc.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1997-01-08  0:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-12-31  0:00 Building a GNAT cross compiler Jeff Carter
1997-01-02  0:00 ` Jeff Creem
     [not found]   ` <os20by4mze.fsf@ted.vigra.com>
1997-01-08  0:00     ` Jeff Creem
1997-01-07  0:00 ` David L Brown

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