Open Shade4765 opened 1 year ago
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 : https://github.com/UnamSanctam/UnamBinder/blob/b79b6f3eb56bd417e089da35393efa4396f31163/UnamBinder/Forms/Builder.cs#L208 which compiles the C file into a program. The C code file is just a text resource within the C# program.
hello im learning c# and was wondering how u made it generate native c stub from c# binder