🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #52217

Can you cross-compile under Unix for DOS/Windows using gcc?

#52217
From: Skip Montanaro
Date: Wed, 20 Jan 1993 11:27
20 lines
1611 bytes
Is it possible to configure gcc and related tools (gas, gld, ar, etc) to
cross-compile from a supported Unix environment like SPARC/SunOS to a
DOS/Windows environment? I know gcc can be configured as a cross-compiler,
but didn't see anything in the GCC 2.2.2 distribution (the latest we have)
that would suggest we could.

An alternative is to run gcc and its related tools in the DOS/Windows
environment. We would like to avoid that, howerver, as that will mean a
large change to our source code (at least renaming files and changing
#include references in about 1000 files). We would prefer a cross-
compilation environment instead.

(I looked in news.answers, gnu.gcc.help, and on prep.ai.mit.edu but didn't
find anything approximating an FAQ list for gcc. Is there one?)

Thx,

--
Skip (montanaro@crd.ge.com)
Technical Details
Message-ID: <MONTNARO.93Jan20062738@spyder.crd.ge.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!uwm.edu!uucp.mr.med.ge.com!rdsunx.crd.ge.com!rdsunx!montnaro

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,d2b725991b261182,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-01-20 05:16:22 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!uwm.edu!uucp.mr.med.ge.com!rdsunx.crd.ge.com!rdsunx!montnaro
From: montnaro@spyder.crd.ge.com (Skip Montanaro)
Subject: Can you cross-compile under Unix for DOS/Windows using gcc?
Message-ID: <MONTNARO.93Jan20062738@spyder.crd.ge.com>
Sender: usenet@crd.ge.com (Required for NNTP)
Nntp-Posting-Host: spyder.crd.ge.com
Reply-To: montanaro@ausable.crd.ge.com (Skip Montanaro)
Organization: GE Corporate Research & Development, Schenectady, NY
Distribution: gnu
Date: Wed, 20 Jan 1993 11:27:38 GMT
Lines: 20