This is a minimal GCC cross compiler for Linux 0.11 a.out on Windows!

I've included all the source, with the alterations I made to make it run.

As I mentioned gcc doesn't fully work.  It has some weird issues finding files,
and I guess the solution is to make it more like DJGPP.  for now you can compile
user mode stuff like this:

	C:\aoutgcc\test>gcc hello.c -o hello -I ../include-0.12 -L../lib

And it'll pick up the headers, and library path to link.

The 'best' way I can think of to test is to tar the exe like this:

C:\aoutgcc>..\bin\tar.exe hello.tar hello

And then run it with the Linux 0.11 on Qemu which can be found in the qemu-12.5.i386
directory. You can run it something like this:

	linux -fda ..\test\hello.tar

Then once Linux boots, do this:

	tar -xvf /dev/fd0
	chmod +x hello
	./hello

Fun?!

Now for the real fun, if you have a functional MSYS, you can build the kernel from Windows!
The caveat being that the final prep work to make a bootable kernel don't currently work.
I don't know where the problem is, it could be the 16bit tools, or the makeboot tool. I haven't
tested all paths yet.

Simply go to the src/linux-0.11 directory and run 'make'

	ld -x -M   boot/head.o init/main.o \
	        kernel/kernel.o mm/mm.o fs/fs.o \
	        kernel/blk_drv/blk_drv.a kernel/chr_drv/chr_drv.a \
	        kernel/math/math.a \
	        lib/lib.a \
	        -o tools/system > System.map
	cp -f tools/system system.tmp
	strip system.tmp
	Grename [system.tmp] [_system.tmp]
	(may not be an error) can't unlink! _system.tmp
	tools/build boot/bootsect boot/setup system.tmp  > Image
	Root device is (3, 1)
	Boot sector 512 bytes.
	Setup is 312 bytes.
	System is 122880 bytes.
	rm -f system.tmp
	sync

Now the file we want is tools\system .  This is the compiled 32bit kernel.  You can use the tar method 
from above to transfer it into linux.  Once in Linux remove the file /usr/src/linux/Image ,and place
the system file into the /usr/src/linux/tools directory, and type in make.  This will do the bootloader
stuff to the kernel we compiled in Windows.

sync a few times, and reboot!

You should now see a message to indicate it was compiled on Windows 10!