[comp.sys.atari.st] GNU C, ST cross compiler

MCCABE@MTUS5.BITNET (Jim McCabe) (02/18/90)

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.

If possible, send me mail directly (to MCCABE@MTUS5.BITNET) since I don't
get the chance to read these groups as often as I like...


                                                Jim McCabe
                                                MCCABE @ MTUS5.BITNET

hyc@math.lsa.umich.edu (Howard Chu) (02/20/90)

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