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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,cce283a10ce147fc X-Google-Attributes: gid103376,public From: nettleton@ccfn.demon.co.uk (Chris Nettleton) Subject: Re: GNAT for Cross Compilation Date: 1996/06/21 Message-ID: <31ca6fa2.806112@news.demon.co.uk>#1/1 X-Deja-AN: 161360766 x-nntp-posting-host: ccfn.demon.co.uk references: <31C9A6FC.41C67EA6@afit.af.mil> organization: CN Software reply-to: cnettleton@acm.org newsgroups: comp.lang.ada Date: 1996-06-21T00:00:00+00:00 List-Id: Kendall Lemley wrote: >Hi- > > I am fairly new to GNAT and am interrested in trying to set it up to >cross compile Ada code for a student research project. Our host machine >is a Sun Sparc (running SunOS4.1.3) and the target is a 68030 board. I >have gotten GNAT 3.05 up and running on the native SUN (I assume this is >the first step). However, I have been unable to find any documentation >on how to proceed to set up the cross compiler. Has anyone out there >done this before, or know where I might look to learn how to do this? We are in the process if building a cross compilation system for a 68020 board. The compiler itself is not much of a problem once you've sorted out what to call the various programs (e.g. m68k-coff-gcc), and updated programs like gnatmake to call the cross compiler. The bulk of the implementation effort is in the run-time system and debugger support. Assuming you have a bare board target computer, then you will need to provide the basic C libraries such as libc, libm, libpthreads if you plan to support the full Ada 95 language. On the other hand if you don't plan to use input-output, memory management or tasking then you can get away with a mimimal run-time system that initialises the stack and calls the main program.