title: Performance of C-Wrapper DLL for C++ in custom language
body: <p>Currently I´m developing my own programming language for learning purpose, since I want to support C++ Code and an ABI for C++ is not supported by all compilers (afaik) the idea was to implement support for the C ABI and create wrapper dlls for C++ in C. </p>
  
  <p>Edit: I´m asking for runtime overhead.</p>
  
  <p>The question is how much overhead will I get if basically everything i do with an C++ object is routed through this wrapper dll? Or are there other solutions which will work for all C++ compiler?</p>
  
  <p>The dlls would use code like in the comments:</p>
  
  <pre><code>MyClass a = new MyClass; // void* a_handle = MyClass_new();
  a.Foobar(5);             // MyClass_Foobar(a_handle, 5);
  </code></pre>