title: C++/Win32 Smallest possible MessageBox("Hello") app exe?
body: <p>I am working on a project that is getting really large and I need to have the exe uploaded to someone every time a new build is out, and my connection is by phone modem.</p>
  
  <p>I want to compile the smallest possible exe for an application whose purpose is to run the code: <code>MessageBox(0, "Hello", 0, MB_OK);</code></p>
  
  <p>I am using Visual Studio 2010. My attempts so far:</p>
  
  <p>Version 0, size and switches:</p>
  
  <blockquote>
    <p>7kB (release)<br>
    Used: \O1</p>
  </blockquote>
  
  <p>Version 1, size and switches:</p>
  
  <blockquote>
    <p>3kB (release)<br>
    Used: \O1, Off buffer security check, Ignore default library linkage.</p>
  </blockquote>
  
  <p>Can this be made even smaller than 3kB? What compiler flags influence the size of the executable?</p>