Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!ucsd!tut.cis.ohio-state.edu!mstar!mstar.morningstar.com!bob From: bob@MorningStar.Com (Bob Sutterfield) Newsgroups: gnu.gcc Subject: Re: GCC Cross Comp ? Message-ID: Date: 11 Oct 89 15:28:53 GMT References: <46734@bbn.COM> Sender: @MorningStar.COM Reply-To: bob@MorningStar.Com (Bob Sutterfield) Distribution: gnu Organization: Morning Star Technologies Lines: 19 In-reply-to: bpalmer@bbn.com's message of 10 Oct 89 20:35:51 GMT In article <46734@bbn.COM> bpalmer@bbn.com (Brian Palmer) writes: Is it possible to make gcc for a Sun4 that will produce an executable for a Sun3. (ie a Sparc -> 68020 cross compiler) ? To make 68k binaries on a SPARC (seems to be working so far), I added a target to config.gcc that looks something like case $machine in ... my68k) cpu_type=m68k configuration_file=xm-sparc.h target_machine=tm-my68k.h aux_output=out-m68k.c ;; Then I just say "config.gcc my68k" and make it (one stage only :-). You'll need a cross-gas too (quite a bit simpler), and a cross-gld (which gets more interesting, depending upon your target machine...)