// clay -no-exceptions -shared -asm no-crt-win-hello.clay // gcc -c no-crt-win-hello.s // ld -o no-crt-win-hello no-crt-win-hello.o -lkernel32 import win32.(GetStdHandle, WriteFile, ExitProcess); external mainCRTStartup() { var hStdout = GetStdHandle(UInt(-11)); WriteFile( hStdout, RawPointer(cstring("Hello World\n")), 12, LPDWORD(0), LPOVERLAPPED(0) ); ExitProcess(0u); }