GCC for Win95

Artem Hodyush artem@duma.gov.ru
Fri Dec 31 23:54:00 GMT 1999


realthing@email.cz wrote:
> Hi there!
> 
> I'm a GCC beginner and I have a few questions. 
> 
> 1)I want like to write programs for Win95/98/NT etc with GCC. There is 
> Mingw32 and Cygwin32 but they both link the programs with some DLLs no 
> matter if I want it. I'd like to have control over everything what is in 
> my EXE(i.e. start at the entry point and end with ExitProcess()). 

This is not trivial. Gcc generates code that may or may not depend on
support routines in libgcc.a, which in turn depend on a number of routines
from C runtime library, contained in the "some DLLs" your program is
linked with. If you can live without C++ constructors, exceptions, new,
malloc and all C runtime library functions, you can probably do what 
you want. You will need to modify what gets linked into libgcc.a, change
startup code and gcc specs file. Unless you have to produce something
very special using gcc, you probably don't want to go that way.

> I wanted  to modify Mingw32 libraries but I didn't find the sources. Are that 
> sources available? Is there any other way to do what I need?

Mingw sources are available at 
ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/mingw32/runtime

> 2)Is there any other GCC for Win32?

Sorry, don't know.

> 3)What is the latest version of GCC for Win32?

2.95.2, available at 
ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/mingw32/gcc-2.95.2


> 4)Does GCC produce better code than VC++ or Delphi?

In my opinion, generally no, at least for 2.95, but it doesn't matter.

> 5)Where can I find up-to-date information about GCC for Win32?

The most up-to-date and most comprehensive site about GCC for win32 is
http://www.xraylith.wisc.edu/~khan/software/gnu-win32/
There is also mingw32 mailing list at
http://www.egroups.com/lists/mingw32/

 



More information about the Gcc mailing list