3 ms·
If you want to interface two languages, then I do not see a way arround involving the runtime of both languages (in the same way that linking to C code still us
by gizmo686 12y ago
If you want to interface two languages, then I do not see a way arround involving the runtime of both languages (in the same way that linking to C code still uses the C runtime). However, using my method does not actually involve any C code. "extern C" makes the compiler produce object code that can be called as if it was produced by C code; it does not produce any C code that would compile to the given object code.
Of course, it will also produce C headers to give the type information of the exported symbols, but I wouldn't call that code.