Article View: comp.sys.mac.programmer.codewarrior
Article #331Re: x86 Cross-Compiler for the Mac
From: toby
Date: Tue, 31 May 2005 23:42
Date: Tue, 31 May 2005 23:42
76 lines
3791 bytes
3791 bytes
Steve wrote: > On 25/5/05 04:48, in article > 1116992890.824483.56310@g47g2000cwa.googlegroups.com, "toby" > <toby@telegraphics.com.au> wrote: > > > > > > > jonhoyle@mac.com wrote: > >> Now that Metrowerks has discontinued their x86 cross-compiler, I am > >> left with wondering if there is another Mac-hosted x86 cross-compiler? > >> (I know that gcc is available on x86, but it is not Mac-hosted.) ... > > > > You can use MinGW to build Win32 executables (EXE, DLL, etc, in GUI or > > console flavours) from OS X. MinGW is a complete GNU toolchain > > including gcc, gas, and associated utilities. > > > > I recently wrote these porting instructions for 10.x: > > http://groups-beta.google.com/group/comp.sys.mac.programmer.tools/browse_frm/t > > hread/481f7d3e6c021636/1471e5a81e0a94e5#1471e5a81e0a94e5 > > > > Eclipse (http://www.eclipse.org/) makes a top-notch IDE companion - I > > like it better than Xcode for portable projects. > > > > --Toby > > > >> > >> Jonathan Hoyle > >> Eastman Kodak > > > > Toby, > > My company has decided to look at porting our code to MinGW, and thanks to > your build_cross.sh script it looks like we can stick with Macs, and it's > going to be a bit easier than we anticipated! (But we still have to get our > heads around make files!!) I'd be happy to help, having recently helped move a team of programmers from VSS/VS build+debug to Subversion/Eclipse build+debug. This involved writing some moderately complex Makefiles, which Eclipse deals with rather nicely. It also has gdb integration at least for the native target; these guys target Linux. > > The only thing that seems to be missing from the toolset is gdb. Have you > had any success in remote debugging OS X host -> Windows target? Is it > simple to do? I have not done that, as I rarely use symbolic debuggers, but it would be an interesting thing to try... By the way I recently updated the build-cross script for more recent MinGW release files: GCC_VERSION=3.4.2-20040916-1 BINUTILS=binutils-2.15.91-20040904-1 MINGW=mingw-runtime-3.7 W32API=w32api-3.2 The gcc configure command now looks like: "$SRCDIR/$GCC/configure" --with-gcc --with-gnu-ld --with-gnu-as \ --with-sys-root="$PREFIX/$TARGET" \ --without-newlib --disable-multilib \ --target=$TARGET --prefix=$PREFIX \ --enable-threads --disable-nls --enable-languages=c,c++ \ --disable-win32-registry --disable-shared --Toby > > > > -- > Cheers. > Steve Folly.
Technical Details
Message-ID:
<1117582976.124298.186480@f14g2000cwb.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!f14g2000cwb.googlegroups.com!not-for-mailReferences:
<1116960211.043994.76260@o13g2000cwo.googlegroups.com> <1116992890.824483.56310@g47g2000cwa.googlegroups.com> <BEC2A849.DF1F0%root@127.0.0.1>Show Full Headers
Complete Article Headers
X-Google-Thread: f635e,2bb42746d76cd12c X-Google-Thread: 10bcce,2bb42746d76cd12c X-Google-Thread: fd047,2bb42746d76cd12c X-Google-Attributes: gidf635e,gid10bcce,gidfd047,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!f14g2000cwb.googlegroups.com!not-for-mail From: "toby" <toby@telegraphics.com.au> Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.mac,codewarrior.windows Subject: Re: x86 Cross-Compiler for the Mac Date: 31 May 2005 16:42:56 -0700 Organization: http://groups.google.com Lines: 77 Message-ID: <1117582976.124298.186480@f14g2000cwb.googlegroups.com> References: <1116960211.043994.76260@o13g2000cwo.googlegroups.com> <1116992890.824483.56310@g47g2000cwa.googlegroups.com> <BEC2A849.DF1F0%root@127.0.0.1> NNTP-Posting-Host: 12.34.139.70 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1117582981 31420 127.0.0.1 (31 May 2005 23:43:01 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 31 May 2005 23:43:01 +0000 (UTC) User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: f14g2000cwb.googlegroups.com; posting-host=12.34.139.70; posting-account=WnDYPgwAAAD134uw4c1soGzKsLX8U0qE