With this code using win98:
#include <iostream>
using namespace std;
int main()
{
cout << "hello world\n";
return 0;
} Compiled with MingW using
gave me an executable of 438kb
Using different switches to first convert to asm then compile
gave me 206kb
I'm not sure if this can be reduced further other than switching to C.