Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how did u make it generate native c stub #51

Open
Shade4765 opened this issue Jan 3, 2023 · 3 comments
Open

how did u make it generate native c stub #51

Shade4765 opened this issue Jan 3, 2023 · 3 comments

Comments

@Shade4765
Copy link

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

@UnamSanctam
Copy link
Owner

UnamSanctam commented Jan 3, 2023

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

@Shade4765
Copy link
Author

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#

@UnamSanctam
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants