bpalmer@bbn.com (Brian Palmer) (10/11/89)
Is it possible to make gcc for a Sun4 that will produce an executable for a Sun3. (ie a Sparc -> 68020 cross compiler) ? My target machine is really not a Sun3 but close enough that I can make the changes myself. Brian J Palmer
bob@MorningStar.Com (Bob Sutterfield) (10/11/89)
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...)