[comp.sys.atari.st] GCC cross compiling on Sun-3

waal@cwi.nl (Peter de Waal) (11/08/90)

Hi,

Can anybody tell me how to cross-compile gcc sources on a Sun-3?
I've tried to compile some sources with the gcc that is installed on a Sun-3
at our site, by:

- forcing it to use the gcc-include files for atari gcc.1.37.1
- undefining symbols like sun, unix, __sun__, __unix__ and __HAVE_68881__
- compiling with -m68000 -msoft-float, -mnobitfield

(all the options seem to be necessary to override the default options)

If I compile sources to assembler files and perform the rest of the
compilation on my ST, everything seems to work, although gcc-cc1 (on Sun-3)
complains about a parsing error at the last closing parenthesis in
<osbind.h>. It produces usable assembler code, though.

I can assemble to .o files , but then the atari linker complains about wrong
object file formats.

Is it possible to use a gcc compiler that is designed for a 68020
architecture with a floating point chip for my purposes, or do I have to
rebuild a gcc version from scratch?

=============================================================================
Peter de Waal,   CWI,   P.O. Box 4079,   1009 AB Amsterdam,   The Netherlands
Tel: +31 - 20 592 4167.                          Electronic Mail: waal@cwi.nl
=============================================================================