I tried your program with MSVC using the following command:
cl small2.c /MD /link /entry:_start /subsystem:CONSOLE kernel32.lib
It's 5kb. cl small2.c /MD /link /entry:_start /subsystem:CONSOLE kernel32.lib
It's 5kb.https://docs.microsoft.com/en-us/cpp/build/reference/nodefau...
cl small2.c /link /force /nodefaultlib /entry:_start /subsystem:CONSOLE kernel32.lib
This gets it down to 3kb.