2

I'd like to make a native build for the gcc compiler on my Windows 7 X64 laptop. After reading the installation instructions and realizing they were for a Unix system, I decided that it was time to seek help from someone with some more experience. I don't want to do anything fancy, just pretty much build the compiler in a fairly efficient form for my system.

I've already downloaded the source files and have a basic idea of where I want to install it but don't know how to proceed from there. I know there are pre-built binaries out there but I'd kinda like to make some optimizations specifically for my system.

Cole
  • 150

1 Answers1

3

As @afrazier and @Rich Homolka have said in comments to your question, you need Cygwin or MinGW & MSYS to build gcc on windows.

There is at least two projects on sourceforge that provide a build of gcc for developing 64 bit windows applications:

TDM-GCC version 4.6.1 (GCC / MinGW / MinGW-w64 compiler suite for 32- and 64-bit Windows) was built on Windows 7 64-bit using MinGW & MSYS. See the build notes. A single file installer is also available in the "Bundle Installer" section of the download page.

MinGW-w64 (GCC for both x64 & x86 Windows) has in their SVN repository a howto that describes how to build Mingw-w64 GCC on Cygwin, MinGW & MSYS, and *nix shells.

You can also have a look at the answers of these questions:

David L.
  • 260
  • 1
  • 7