Releases: neozeed/gcc-140_gas-138_WindowsNT_v239
First binary build
I've been able to build the cc1 compiler from GCC 1.40 & the Xenix modified GAS 1.38 on the December 1991 Windows NT Pre-release. Why not earlier versions? The October 1991 may work, but anything prior doesn't have floating point support which a compiler that can handle floats will most likely require. I haven't tried but I'll leave it to anyone else.
in the 'hi.zip' file is binaries of the compiler & assembler along with how to run the compiler for a simple 'hello world' style program.
Compiling the hi.c with nmake would look like this:
[D:\hi]nmake
Microsoft (R) Program Maintenance Utility Version 1.12.0012
Copyright (c) Microsoft Corp 1988-90. All rights reserved.
cc1 -quiet -version -o hi.s hi.c
GNU C version 1.40 (80386, BSD syntax) compiled by CC.
default target switches: -m80387
ax386 -version -o hi.obj hi.s
GNU assembler version 1.38
link -debug:full -subsystem:console -entry:mainCRTStartup -out:hi.exe hi.obj C:\nt\mstools\lib\base.lib C:\nt\mstools\lib\console.lib C:\nt\mstools\lib\ntdll.lib C:\nt\mstools\lib\libcmt.lib
Microsoft Windows NT Linker Version 2.2
hi.exe() : warning 0505: No modules extracted from C:\nt\mstools\lib\console.lib
I haven't bothered with the pre-processor, or the driver yet, although I can't imagine that many people would be interested? libgcc1/libgcc2 would have to be built for anything complicated.
Building cc1 may result in some weird errors in certain gen*exe stuff, delete the executable and re-run nmake and it'll eventually compile.