Re: Upgrading XP machine to run gcc



deltaseq0 wrote:

So I can install cygwin and gcc under it and create executables that will run under a Linux environment or another Windows cygwin environment but not a Windows environment unless I use cygwin to compile my own gcc-like compiler to do so. Close to being right? How much of a learning curve (weeks? months?) is there for a retired chemical engineer to learn to do that? It sounds as if I would be very close to learning how to operate in the Linux environment. Could I also just as easily partition my hard drive and install Linux to do the same things?
You would need to make your own gcc/gfortran cross compiler for each case of compiling and running on different OS. You're more likely to find help for making a cross compiler which compiles on linux, and your experiments would go much faster. You would want to build the native compilers as a first step. Most people have found even that a several day learning process on Windows.
Most current linux distributions have self-contained facilities for disk partitioning and installing dual boot on a Windows system. This certainly is the way to go if you're interested in trying gcc/g++/gfortran on linux. With gcc-4.2.1 about to be released, it shouldn't be difficult to upgrade to a satisfactory current version.
In case you're interested, I'll point out that certain commercial compilers for linux aren't fully compatible with gcc-4.2 (no binary compatibility for C++). This stems from similar incompatibility between g++-4.1 and 4.2.

A minimal risk approach might be to install and work with gfortran while waiting for Mingw to update to gcc 4.2.0, or installing cygwin or linux, or installing the unofficial experimental Mingw-gcc update.

The gfortran wiki distributions are an excellent service. I would install cygwin and add the wiki compilers.
I have only 2 reasons for making cygwin compilers from source:
a) to test g++ with gfortran
b) hoping to contribute to making gcc development compatible with Windows. There is no chance of cygwin adopting gfortran without g++.

I dedicate an old 32-bit P4 to building cygwin gcc and CD/DVD burning, killing the network connection so it doesn't get interrupted.
.



Relevant Pages

  • Re: Hilfe =?iso-8859-1?b?Zvxy?= Linux-Fans unter Windows
    ... > cygwin gehört, aber mir scheint das etwas schwer zu installieren - lasse ... Cygwin ist ein Unix look and feel aber es de facto ein native Windows ... Beim kompilieren von Paketen etwa halb so schnell wie CoLinux. ... CoLinux ist native Linux in einem Windows Fenster. ...
    (de.comp.os.unix.linux.misc)
  • Re: Want to sell my Dell
    ... Cygwin is also a useful add-on for Windows because it allows you to run some ... Windows menu that drives the CD/DVD burning software built into Linux. ... Want to change the creation time of all your new photos to the time that the ...
    (alt.sys.pc-clone.dell)
  • Re: Coding style article with interesting section on white space
    ... > Linux on Intel x86 at ... > compilers can be much larger, but that has less bearing on portability ... generation on Windows vs Linux (which _should_ pretty obviously be ... and code generator will be essentially unchanged across platforms, ...
    (comp.lang.python)
  • Re: Linux C header files on Windows?
    ... > are 'linux' header files that I can have on windows. ... > windows port of the unix environment but not the header files. ... Cygwin, Linux, gcc, etc. (though they're very good at correcting my ...
    (comp.lang.c)
  • Re: novell-suse linux dead meat?
    ... >> Why not use StarOffice or OpenOffice for Windows? ... > compilers just to stay current with the technology. ... where the majority of my programming was being done. ... > I can have the latest and greatest on Linux for no cost while on the ...
    (alt.os.linux.suse)

Loading