2 ms·
Whoops, my bad, I didn't thought of the self-hosting. Somehow I thought that the compiler is written in C. How complicated would it be to link against C++ code
by albertzeyer 16y ago
Whoops, my bad, I didn't thought of the self-hosting. Somehow I thought that the compiler is written in C.
How complicated would it be to link against C++ code from within ooc code?
- nddrylliog 16y agoNot too bad, use -linker=g++ and declare your functions extern "C" in the C++ code
- albertzeyer 16y agoIf it is easy, why not just use the LLVM C++ interface in the ooc compiler?