[comp.os.minix] Cross-compiling Minix programs on the Sun

david@doe.utoronto.ca (David Megginson) (06/12/91)

I am trying to set up a cross-compiler on a Sun Sparcstation for Minix
ST (it would be nice for compiling big programs like emacs). I have
applied the gcc 1.39 and gas diffs from plains, but there were no 68K
diffs for the Gnu binutils like ld. I have taken the 386 source for
the binutils from plains, but I don't know what changes I should make
for 68K Minix. Any suggestions? gcc-cpp, gcc-cc1 and gcc-as work fine,
since I can generate a file hello.o, download it to my ST, and link it
into the program `hello' with no difficulties.


David

-- 
////////////////////////////////////////////////////////////////////////
/  David Megginson                      david@doe.utoronto.ca          /
/  Centre for Medieval Studies          meggin@vm.epas.utoronto.ca     /
////////////////////////////////////////////////////////////////////////

HBO043%DJUKFA11.BITNET@cunyvm.cuny.edu (Christoph van Wuellen) (06/13/91)

Cross-compilations on a SPARCstation for MINIX ST are no problem --
the 'old' GCC port by J. Bammi contains a linker that directly ships
out MINIX ST executables. You only have to fix a single point:

Relocating longs on positions which are not a multiple of 4 gives
an alignment (bus) error on SPARC, you have to copy the item to
a local 'long' variable, perform the relocation, and copy it back
(using bcopy).

C.v.W.

arno@cbmnlu1.cbm.nl (Arno Griffioen) (06/14/91)

In article <56212@nigel.ee.udel.edu> HBO043%DJUKFA11.BITNET@cunyvm.cuny.edu (Christoph van Wuellen) writes:
>Cross-compilations on a SPARCstation for MINIX ST are no problem --
>the 'old' GCC port by J. Bammi contains a linker that directly ships
>out MINIX ST executables. You only have to fix a single point:

Please tell me where I can find it. (Plains.nodak.edu?) I don't have FTP
access so it has to be a mail-server :-( (And please: a filename)

>Relocating longs on positions which are not a multiple of 4 gives
>an alignment (bus) error on SPARC, you have to copy the item to
>a local 'long' variable, perform the relocation, and copy it back
>(using bcopy).


Thanx for telling that... I'd like to use this compiler to port ST-MINIX 1.5
to an (oooollldd) 68010 machine.. this could be a god starting-point.

							Bye Arno.
-- 
Arno Griffioen             |  Commodore Nederland B.V. Unix Support Center
Email: arno@cbmnlu1.cbm.nl |  Tel: (+31) 020-5806748
   or: arno@cbm.nl         |  
 "The light at the end of the tunnel... Is the headlamp of an oncoming train!"

HBO043%DJUKFA11.BITNET@cunyvm.cuny.edu (Christoph van Wuellen) (06/17/91)

I do not know where I have got the patched gcc-ld. It was the old MINIX/TOS
port by Bammi.

C.v.W.

david@doe.utoronto.ca (David Megginson) (06/18/91)

In article <56488@nigel.ee.udel.edu> HBO043%DJUKFA11.BITNET@cunyvm.cuny.edu (Christoph van Wuellen) writes:
>I do not know where I have got the patched gcc-ld. It was the old MINIX/TOS
>port by Bammi.
>
>C.v.W.


Probably from atari.archive.umich.edu in atari/gnustuff/minix.

David

-- 
////////////////////////////////////////////////////////////////////////
/  David Megginson                      david@doe.utoronto.ca          /
/  Centre for Medieval Studies          meggin@vm.epas.utoronto.ca     /
////////////////////////////////////////////////////////////////////////