delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/08/21:16:11

From: karuottu AT freenet DOT hut DOT fi (Kai Ruottu)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Compiling Linux kernel with DJGPP
Date: Mon, 08 Dec 1997 23:26:29 GMT
Organization: Freenet Finland
Lines: 59
Message-ID: <348c7761.20159898@news.freenet.hut.fi>
References: <347eb8f2 DOT 151251738 AT news-direct>
NNTP-Posting-Host: plus-9-51.dial.inet.fi
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On Fri, 28 Nov 1997 12:32:45 GMT, epa AT datcon DOT co DOT uk (Ed Avis) wrote:

>Is it possible to use DJGPP to compile the Linux kernel under DOS? If
>not, would it be possible under Win95 (with LFN support)?

 Don't know how 'make config' will work... There can be some troubles
with the configuration needing some Unix-tools like 'sh' (bash)...

 Anyhow, anyone having a DOS/DJGPP-to-Linux cross-compiler, there
shouldn't be much trouble (some filenames too long) running the
make... But, if a DOS/DJGPP-to-Linux cross-compiler is available
somewhere, who knows... Making this kind of tool shouldn't be much
trouble for someone having a Unix-to-DOS/DJGPP cross-compiler...
Linux owners can get this as ready-to-run, see DJGPP-FAQ. Cygnus
used to develop the Cygwin32 with a Linux-to-cygwin32 cross-compiler,
and compile the release Win32-hosted compiler with it, but they
haven't released it (earlier they did). So, those needing a Win32-
targeted cross-compiler under Unix, like me, have compiled it
themselves...

 I haven't used DOS since spring-96...but I have still a
Unix-to-djgpp-2.01 cross-compiler (and a Win32-to-djgpp-2.01 too),
if needing to compile some cross-compilers or something else for a
DOS/djgpp host (if someone very kindly asks...)

 I have built a cygwin32-hosted, i386-linux (ELF) targeted
cross-compiler. But it seems that the Win32-to-Linux cross-compiler
will stay only in my own use unless someone wants to take it into
his/hers ftp-site...  There is some trouble still, it seems that the
compiler produces only static binaries... I made a SCO-to-Linux cross-
compiler too, and it seems to behave just the same way...but produce
better code than my current native Linux compiler.  I used the
Cygwin32 Rel.18 sources and running the 'rutgers.edu' c-torture-1.45
tests gave 14 failures against 116 with the native Linux gcc-2.7.2.1
in the 'execute' tests, using the same Linux libc-5.x...

>I know it used to be possible with EMX on OS/2...

 I strongly suspect this... Haven't heard about a emx-to-linux cross-
compiler, or BTW about any emx-hosted cross-compilers... I only know
the compiler I made myself...  Two weeks ago I updated my Unix-to-emx
cross-compiler to the 0.9c level with gcc-2.7.2.3, binutils-2.6 and
ld-1.9, the hardest job was with the emxtools: emxbind, emxaout,...
Also the thought of trying a emx-hosted cross-compiler, e.g. for
m68k-coff target, came into my mind -- so it's not any more just a
thought. Needed just a little more patching after the emx-cross, to
add the support for emx-host too...

 Making a emx-to-linuxelf cross-compiler seems quite possible. After
solving the 'static only' problem, I cannot think any reason why it
shouldn't work and produce quite the same quality code than the native
Linux compiler and the SCO- and Win32-hosted cross-compilers...

 Perhaps compiling Linux code with emx was possible when Linux still
used i386-aout as the binary format (emx uses this still) and linking
with Linux libs instead of the emx ones... Nowadays the Linux kernels
are built as linuxelf binaries.

 

- Raw text -


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