This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Cross 68k using GCC for a ix86-pc-msdos host...HOW-TO ?


On Thu, Apr 01, 1999 at 04:42:27PM +0200, THIEBOLT François wrote:
> I'd like to distribute to my students a compiled version of 'as' & 'ld'
> configured to act as a cross-assembler and cross-linker 68000 under
> MSDOS (i don't want to use cygwin and others...i just want these
> programs running stand alone).
> 
> Got a i486-*-linux based PC:
> #> tar -z -xvf binutils-2.9.1.tar.gz
> #> cd binutils-2.9.1
> #> ./configure --host=i486-pc-msdos --target=m68040-motorola-aout
> #> make all install
> 
> Then trying to run theses as & ld from MSDOS...insufficient memory even
> for very very small programs (129ko)...well any idea ?

Yes. If I am not totally wrong, you can't cross-compile for a different host
that way. --host must be the same for compiling and running the programs.

Look in 

> New CrossGCC FAQ: http://www.objsw.com/CrossGCC

at the section about a 'canadian cross' compile - I guess that is what you
need.

Furthermore, I am not sure if i486-pc-msdos is a supported target, you might
need some DOS extender (or use cygwin in case you have a WIN32s environment.
In that case, you can built a native cross-compiler under the cygwin
environment - this might be easier than the 3-step canadian cross).

cu
Mcihael
-- 
Michael Schwingen, Ahornstrasse 36, 52074 Aachen
_______________________________________________
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
_______________________________________________
To remove yourself from the crossgcc list, send
mail to crossgcc-request@cygnus.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.