www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/13/03:11:26

Date: Sat, 13 Apr 1996 15:10:32 +0800 (GMT+0800)
From: Old System Diagnostic <sysdiag AT mozcom1 DOT mozcom DOT com>
To: Alexander Lehmann <alexlehm AT rbg DOT informatik DOT th-darmstadt DOT de>
cc: djgpp AT delorie DOT com
Subject: Re: How to build a dos to mips cross compiler???
In-Reply-To: <4kl8pk$11l7@rs18.hrz.th-darmstadt.de>
Message-ID: <Pine.SUN.3.91.960413150740.5224A-100000@mozcom1>
MIME-Version: 1.0

On 12 Apr 1996, Alexander Lehmann wrote:

> Michael Cole (m&gcole AT why DOT net) wrote:
> : Help. I downloaded GNU 2.7.2 to try to build a cross compiler. It gave
> : me instructions for installing it on a UNIX machine. It said to get
> : DJGPP in order to build it for DOS. Well, I downloaded the stuff that
> : was specified in the readme file for v2. I downloaded the FAQ and
> : could not find out a way to build the cross compiler. The FAQ mentions
> : building a dos to 68k cross compiler but only says that this has been
> : done and it could be directly downloaded. So, does anybody know how I
> : build a DOS to mips cross compiler on a DOS machine?
> 
> First of all, you have to get the complete source for gcc from the FSF, since
> only the necessary file for Intel CPUs are included in the djgpp source of
> gcc (I think). On unix you have a script called configure which will
> create the necessary links to host machine and target description files, you
> probably have to do the same things that the script does (and of course copy
> the files since there is no symlink in DOS). Then the compiler should
> build, however, since there are probably loads of sh dependencies in
> the Makefiles, these may need tweaking also. Probably much easier to first
> build a unix->dos cross compiler and then use that to build the DOS->something
> compiler.

There is yet another way, get the Cygwin binary distribution, which 
contains Win32 versions of stuff we know and love like ln, ls, etc. There 
also is a bash.exe; if you run this stuff under Win95 or WinNT, you can 
have crude symlinks (ln takes care of the .lnk files and crap). With the 
Cygwin binaries (also available, since Cygnus is slow), at

ftp://ftp.admu.edu.ph/pub/gcc_win32

I haven't tried it, mind, but the principle seems sound. You do have to 
get the whole gcc source (2.7.2 is 28Meg untarred!).

Cheers,

Orly

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019