This is everything needed to make your own GCC on Windows NT

I'm using the VisualC for Win32s redistributable that came on the Win32s
SDK diskettes from ages ago, with a newer link/lib commands, and newer
headder files that GCC can deal with.

To build GCC you need sed, which I've included slightly modified version
that Microsoft C 8.00 can build with ease.  Simply run the make.bat 
file and you can build your own sed.

I've also included bison, which is normally needed, although not with this
version

To compile, first place msvc32s somewhere you like, edit the env.bat file
to reflect where it is installed and run it.  If you type in cl.exe you
should see:

-CL OUTPUT----8<------8<------8<------8<------8<------8<------8<------8<
D:\gcc-for-nt>cl
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 8.00
Copyright (c) Microsoft Corp 1984-1993. All rights reserved.

usage: cl [ option... ] filename... [ -link linkoption... ]
------8<------8<------8<------8<------8<------8<------8<------8<------8<

which means we are ready to build gcc!
cd into the gcc-2.6.3 directory then copy the 'binaries' directory onto it

-COPYING BINARIES-----8<------8<------8<------8<------8<------8<------8<
D:\gcc-for-nt>cd gcc-2.6.3

D:\gcc-for-nt\gcc-2.6.3>copy ..\binaries\*.* .
..\binaries\as.exe
..\binaries\BISON.EXE
..\binaries\bison.s1
..\binaries\buildlibgcc.cmd
..\binaries\config-nt.bat
..\binaries\SED.EXE
..\binaries\touch.exe
        7 file(s) copied.

D:\gcc-for-nt\gcc-2.6.3>
------8<------8<------8<------8<------8<------8<------8<------8<------8<

Now we are ready to begin.  First run config-nt.bat which will 
generate our makefile.

When done you'll see something like this:

-RUNNING CONFIG-NT----8<------8<------8<------8<------8<------8<------8<
D:\gcc-for-nt\gcc-2.6.3>copy multilib.h1 multilib.h
        1 file(s) copied.

D:\gcc-for-nt\gcc-2.6.3>del multilib.h1

D:\gcc-for-nt\gcc-2.6.3>echo ""  1>config.status

D:\gcc-for-nt\gcc-2.6.3>
------8<------8<------8<------8<------8<------8<------8<------8<------8<

Now we are ready to build gcc.  Simply type in nmake, and it will
compile.  On my computer it takes 5 seconds, but back in 1994
this would take HOURS.  When it is complete you will see something
like this:

-COMPILING GCC WITH NMAKE-----8<------8<------8<------8<------8<------8<
./config/winnt/ld.c
        link32 -align:0x1000 -subsystem:console -entry:mainCRTStartup  -stack:10
00000,1000000 -out:ld-winnt.exe ld.obj libc.lib kernel32.lib
D:\msvc32s\bin\LINK32.EXE: warning: invoking D:\msvc32s\bin\LINK.EXE
Microsoft (R) 32-Bit Incremental Linker Version 2.50
Copyright (C) Microsoft Corp 1992-94. All rights reserved.

        copy /Y ld-winnt.exe ld.exe
        1 file(s) copied.
        copy /Y cccp.exe cpp.exe
        1 file(s) copied.

D:\gcc-for-nt\gcc-2.6.3>
------8<------8<------8<------8<------8<------8<------8<------8<------8<

Now we need to build libgcc.a which I've provided a script file 
to do so, simply run buildlibgcc.cmd and it will generate the needed 
startup library.  This uses both Microsoft C, and GCC to compile 
part1 & part2 along with the combined library.

-BUILDING LIBGCC.A-----8<------8<------8<------8<------8<------8<------8<
Microsoft (R) 32-Bit Library Manager Version 2.50
Copyright (C) Microsoft Corp 1992-94. All rights reserved.


D:\gcc-for-nt\gcc-2.6.3>copy libgcc1.lib libgcc1.a
        1 file(s) copied.

D:\gcc-for-nt\gcc-2.6.3>copy libgcc2.lib libgcc2.a
        1 file(s) copied.

D:\gcc-for-nt\gcc-2.6.3>copy libgcc.lib libgcc.a
        1 file(s) copied.

D:\gcc-for-nt\gcc-2.6.3>
------8<------8<------8<------8<------8<------8<------8<------8<------8<

Now for a simple test program.
cd into the hello directory, and run the build.bat command, and the
simple program should compile.

-HELLO WORLD--8<------8<------8<------8<------8<------8<------8<------8<
D:\gcc-for-nt\hello>build.cmd
Hello World!
------8<------8<------8<------8<------8<------8<------8<------8<------8<

You have now built your own ancient GCC for Windows NT!