title: extending the c programming language with gcc
body: <p>I want to write my own programming language as an extension of the c programming language. The entire programming language that I am inventing are simply shorthands which translate to valid c code. For example:</p>
  
  <pre><code>namespace TcpConnection {
      void* connect(char *addr)
  }
  </code></pre>
  
  <p>would translate to:</p>
  
  <pre><code>void* TcpConnection_connect(char *addr)
  </code></pre>
  
  <p>All that is done is a simple name replacement. This is only one example of an extension which I want to provide. Another simple extension would be function overloading (this would concatenate to the end of the function name the types of its arguments.</p>
  
  <p>In any case, the result is perfectly valid C code. Is there any way to do this without going into gcc code? </p>