UnamSanctam/UnamBinder

how did u make it generate native c stub

Opened this issue · 3 comments

hello im learning c# and was wondering how u made it generate native c stub from c# binder

I used TCC, I extract the TCC compiler and the C code and then run the compiler from inside the binder.

I used TCC, I extract the TCC compiler and the C code and then run the compiler from inside the binder.

how are u even using c in c#

I have both the TCC (TinyCC) C compiler and the C code as a resource in the C# forms program, then I extract the compiler into a folder and then the C file somewhere as well. Then the builder runs the TCC compiler here :

RunExternalProgram(
which compiles the C file into a program. The C code file is just a text resource within the C# program.