title: How to create 4KB Linux binaries that render a 3D scene?
body: <p>I just learned about the <a href="http://www.creativeapplications.net/windows/hartverdrahtet-infinite-complexity-in-4096-bytes/" rel="nofollow noreferrer">4k demo scene contest</a>. It consists in creating a 4KB executable which renders a nice 3D scene. The cited demo was build for Windows, so I was wondering, how one could create 4KB OpenGL scenes on Linux.</p>
  
  <p>A bare "hello world" already consumes 8KB:</p>
  
  <pre><code>$ cat ex.c
  #include &lt;stdio.h&gt;
  
  int main()
  {
         printf("Hello world\n");
  }
  $ gcc -Os ex.c -o ex
  $ ls -l ex
  -rwxrwxr-x 1 cklein cklein 8374 2012-05-11 13:56 ex
  </code></pre>