DOS hosted, Linux target.
Tue Dec 15 22:02:00 GMT 1998
It's almost impossible to do this on DOS. DJGPP is a fine Gnu port, but
it's limited by the crusty DOS file system (8+3 filenames) and a
bash-imcompatible shell; building Gnu CC involves executing a lot of
shell scripts, and DOS just isn't up to the job.
It might be feasible under cygwin32, but cygwin is so slow (and still
somewhat flaky under Win95) that I just gave up in frustration and went
back to linux.
I believe your best bet is to do the Canadian Cross under a *nix-type
system. It doesn't make any assumptions about the characteristics of
the target system, so there's no reason you couldn't run it with
--target=i386-linux. If you follow the directions carefully it works
pretty well. The only potential changes I can think of is in the
run-time library; newlib probably isn't the best choice (maybe not even
a workable choice) and so you might want to modify the setup so that it
skips building the RTL, and just copy over some already-built libs from
your linux box to the host system.
(And I'm not just saying that because I'm a Canadian... ;-)
Adam Bisaro wrote:
> I'm going to be in need of a DOS -> Linux cross compiler in the near
> future, so I'm trying to do my homework...
> The FAQ ( ftp://ftp.cygnus.com:/pub/embedded/crossgcc/FAQ ) mentions two
> methods for building such a thing -- either use DJGPP, or try a Canadian
> cross. Since I've never attempted anything like this myself, I thought it
> best to inquire as to folks' personal experiences. Would anyone recommend
> one method over the other? The Canadian cross method looks like a pain,
> would there be any reason to do this when DJGPP is available?
> Most of the cross-compiler Q&A I've seen so far in FAQs, etc., seem to be
> about Linux hosted, DOS targetting compilers. Any tips for trying to go
> the other direction?
> Adam Bisaro
> New CrossGCC FAQ: http://www.objsw.com/CrossGCC
> To remove yourself from the crossgcc list, send
> mail to firstname.lastname@example.org with the
> text 'unsubscribe' (without the quotes) in the
> body of the message.
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
To remove yourself from the crossgcc list, send
mail to email@example.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.
More information about the crossgcc