Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!math.lsa.umich.edu!hyc From: hyc@math.lsa.umich.edu (Howard Chu) Newsgroups: comp.sys.atari.st Subject: Re: GNU C, ST cross compiler Message-ID: <11047@stag.math.lsa.umich.edu> Date: 20 Feb 90 00:24:55 GMT References: <90049.103934MCCABE@MTUS5.BITNET> Sender: news@math.lsa.umich.edu Reply-To: hyc@math.lsa.umich.edu (Howard Chu) Organization: University of Michigan Math Dept., Ann Arbor Lines: 23 UUCP-Path: {mailrus,umix}!um-math!hyc In article <90049.103934MCCABE@MTUS5.BITNET> you write: >I have recently reviewed some of the information about the ST port of >GNU C and am *extremely* impressed! I'd like to use the package soon, >but I would prefer to write and compile my code on a Sun, then transfer >the binaries over to my ST later. > >How difficult would this be? Will the package compile normally on the >standard Sun C compiler? Any help would be appreciated. This is easy to do, trivial in fact. But, you better have a lot of disk space. The first step is to build the standard Sun version of gcc, then use that to build the cross-compiler version. (Just takes editing a few config files to select which version to build.) Once you have the cross-compile built, you can compile the TOS C library on the Sun as well, tho you don't need to (the binary is usually already included). Then, just compile and link - you get TOS executables with no sweat at all. Transfer to ST and run. Hey - y'know, there's a Unix program distributed with Minix that simulates a PC. How hard could it be to put together a TOS simulator to run on, say, a Sun or NeXT box...( or Atari TT, for that matter!)?? -- -- Howard Chu @ University of Michigan