title: How to compile and execute from memory directly?
body: <p>Is it possible to compile a C++ (or the like) program without generating the executable file but writing it and executing it directly from memory?</p>
  <p>For example with <code>GCC</code> and <code>clang</code>, something that has a similar effect to:</p>
  <pre><code>c++ hello.cpp -o hello.x &amp;&amp; ./hello.x $@ &amp;&amp; rm -f hello.x
  </code></pre>
  <p>In the command line.</p>
  <p>But without the burden of writing an executable to disk to immediately load/rerun it.</p>
  <p>(If possible, the procedure may not use disk space or at least not space in the current directory which might be read-only).</p>