Article View: gnu.gcc.help
Article #732Re: Help! Embedded 68k gcc cross compiler on sparc. How?
From: John Clark
Date: Thu, 31 Dec 1992 01:30
Date: Thu, 31 Dec 1992 01:30
28 lines
1707 bytes
1707 bytes
In article <ByL930.EJ6@fmsrl7.srl.ford.com> probert@fires1.srl.ford.com writes: +I need help, step by step, how to build a GCC 2.3.2 m68k cross compiler on my +SPARCstation II for an embedded target. I also need to know what I have to do +with GAS and the GNU version of LD and AR to make assembling, compiling, +linking and libing all work smoothly. The documentation that comes with gcc, binutils, and gas, do have discussions of how to set up a cross environment. So briefly: assuming that there is a 'gcc' directory at some 'root point'. 1) create a 'gcc-m68k' directory, change to that directory and perform '../gcc/configure --host=sun4os4 --target=sun3os4' configuration operation. (the sun3os4 option will generate a compiler that generates m68000 code and assumes 'gas/sun as' assembler, and 'ld/gnu-ld' output). 2) go through the make operations. 3) get 'binutils-2.0' and create a 'ld-m68k', install it in '...../lib/gcc-lib/sun3os4/2.3.2/ld', so that it may be called by the cross compiler. 4) go through a similar exercise for 'gas'. 5) Oddly on a sun4, one can use some of the native tools to manipulate the 68k *.o's, since the 'ar' and 'nm' function just read symbol info they seem to be usable for these simple purposes.
Technical Details
Message-ID:
<1992Dec31.013035.15648@synergy.encinitas.ca.us>Path:
arc1-ca.pugleaf.net!sparky!uunet!nntp1.radiomail.net!fernwood!synergy!clarkReferences:
<ByL930.EJ6@fmsrl7.srl.ford.com>Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!sparky!uunet!nntp1.radiomail.net!fernwood!synergy!clark From: clark@synergy.encinitas.ca.us (John Clark) Subject: Re: Help! Embedded 68k gcc cross compiler on sparc. How? Message-ID: <1992Dec31.013035.15648@synergy.encinitas.ca.us> Organization: Synergy Microsystems, Inc. CA. USA References: <ByL930.EJ6@fmsrl7.srl.ford.com> Distribution: na Date: Thu, 31 Dec 1992 01:30:35 GMT Lines: 30