From: Eli Zaretskii Newsgroups: comp.os.msdos.djgpp Subject: Re: Cross compiling with DJGPP? Date: Tue, 14 Sep 1999 11:00:37 +0200 Organization: NetVision Israel Lines: 23 Message-ID: References: <19990913192546 DOT 20415 DOT 00006983 AT ng-cs1 DOT aol DOT com> NNTP-Posting-Host: is.elta.co.il Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: news.netvision.net.il 937299566 12273 199.203.121.2 (14 Sep 1999 08:59:26 GMT) X-Complaints-To: abuse AT netvision DOT net DOT il NNTP-Posting-Date: 14 Sep 1999 08:59:26 GMT X-Sender: eliz AT is In-Reply-To: <19990913192546.20415.00006983@ng-cs1.aol.com> To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On 13 Sep 1999, Aaron StJ wrote: > platforms. What I would like to know, to put it simply, can DJGPP (which is > basically a port of GCC, with a great 32-bit librray, no?) do any > cross-compiling? It can, but you'd need to reconfigure and rebuild it first. Each version of a GCC binary supports one host and one target. (Host is the system--CPU and OS--where you compile, target is the system where the code will run.) DJGPP binaries are configured so that both host and target are the DJGPP environment, that is, a DOS/Windows machine with DPMI services. To get DOS-hosted cross-compiler, you need to configure GCC so that the target is a different system, and then rebuild the compiler. You will also need Binutils configured for the same combination of the host and target. While this is possible, it is not for the faint of heart. Section 22.8 of the DJGPP FAQ list mentions some configurations for which this was already done.