From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bbc4ab2e16e686c2,start X-Google-Attributes: gid103376,public From: Jeff Carter Subject: Building a GNAT cross compiler Date: 1996/12/31 Message-ID: <32C94EB6.41C67EA6@innocon.com>#1/1 X-Deja-AN: 206969605 content-type: text/plain; charset=us-ascii organization: DIGEX mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Mozilla 2.0 (X11; U; SunOS 4.1.3 sun4m) Date: 1996-12-31T00:00:00+00:00 List-Id: 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.