[gnu.gcc] cross-compilation

wjj@SUN-VALLEY.STANFORD.EDU (Warren Jasper) (09/04/89)

I am currently running a heterogeneous file server for Sun 3's and Sun
4's.  I have gcc running for both types of architectures.  I was
wondering if anybody has made a cross compiler for gcc to produce Sun3
executable code from a Sun 4?  If so, could you tell me how to do it
and what problems you encounter.  What is the best way to tell gcc
where to find the "default" header files?  (I know that I can always use
the -I option and code that into my Makefiles).

It would be nice if gcc supported input arguments (like -sun3 -sun4)
so you could tell it what target machine you would like to run the
code on.  This would probably involve linking in a few different back
ends, and telling cpp what the target architecture is.

Thanks in advance,


		-- Warren