From: Marcel C. <mar...@ho...> - 2003-01-30 15:28:12
|
Arie, > Marcel (and others), > > as an experiment, I just downloaded and installed the DGJPP package, > and used the g77 compiler (v3.2) to create a new exe. > > What a surprise that this version is some 60% faster in start-up compared > to the g77 compiler as part of the MinGw package. > > Some numbers: Run-time: > > DOS/Lahey fortran 12.14 sec's > > Gnu 0.5.25 version 68.33 sec's > MinGW package 65.31 sec's > DGJPP package 26.03 sec's > > The above in a loop with 27 program-starts. I hope those are the commulative times for the 27 runs, and not the times for an individula run! > It seems to me it could be related to the differences between the MinGW and > the DGJPP package. Unfortionally I know nothing about what g77 packages > all exist and what the differences are between all releases. g77 itself if part of GCC (the Gnu Compiler Collection) which contain portable C, C++, Object-C, Ada and Fortran77 compilers that work on many different processors and platforms. The main homepage for the GCC project is http://gcc.gnu.org For DOS and Windows platforms, there are different ports available using the same core compiler, but completely different runtime libraries and different ways of interfacing with the OS: DJGPP: This is a DOS port of GCC using its own 32 bit extender called GO32.EXE. The runtime libarry in this case is included with the compiler and is statically linked. http://www.delorie.com/djgpp/ MinGW: This is a GCC port to Win32 platforms (W95 and above) and uses Microsoft's MSVCRT.DLL as runtime library. The advantage of this approach is that there is no need to develop a specific runtime library for GCC for this platform. Also, this version of GCC is best suited for just using GCC as a replacement for MS compilers. http://www.mingw.org Cygwin: Cygwin consists of a DLL that emulates a Unix like environment on Win32 platforms and GCC and a lot of other tools have been ported to this environment. Cygwin has the advantage of making it easy to port Unix specific programs to Windows, but it may have the disadvantage of adding a certain overhead compared to using native Win32 APIs. The Cygwin version of GCC can also be used to create native windows applications and in that case uses the same runtime library as MinGW http://www.cygwin.com/ In summary, one can say that the GCC project only supplies the source code for the compilers, but to actually get a working compiler you need a development environment and a runtime library which are either included with the OS or which exist as separate projects. Marcel |