Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!agate!shelby!polya!Polya.Stanford.EDU!ham From: ham@Polya.Stanford.EDU (Peter R. Ham) Newsgroups: gnu.gcc Subject: Re: Gcc as a cross-compiler Message-ID: Date: 27 Jul 89 21:05:50 GMT References: <8907272001.AA27176@cs.hut.fi> Sender: Peter R. Ham Distribution: gnu Organization: Stanford University Lines: 21 In-reply-to: jkp@SAUNA.HUT.FI's message of 27 Jul 89 20:01:52 GMT Personally, I would like to be able to use gcc as a cross compiler. Specifically, I'd like to run gcc on a pmax and produce code for vaxen and m68k's. The only obstacles that I have seen to this are a call to atof in gcc that assumes that the target floating point is the same as the host floating point, the standard gcc makefile makes a bunch of little "gen*" programs that assume that the host and target are the same machine. In gas, the code that handles floating point numbers in a machine independent way seemed to fail on our machines which are m68k's with a floating point library that emulates the floating point of vaxen, but with bytes swapped. Maybe I just configured this wrong. I would be interested in hearing more specifics about how people have turned gcc into a cross compiler. -- Peter Ham PO Box 3430 (h)(415) 324-9645 MS Computer Science Student Stanford, CA ham@polya.stanford.edu Stanford University 94309 (o)(415) 723-2513