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

Question: REPL C #57

Open
ib00 opened this issue Feb 7, 2022 · 2 comments
Open

Question: REPL C #57

ib00 opened this issue Feb 7, 2022 · 2 comments

Comments

@ib00
Copy link

ib00 commented Feb 7, 2022

Can this be used for REPL C?

Or am I better off using clang-jit?

@Kray-G
Copy link
Owner

Kray-G commented Feb 8, 2022

Thanks for your considering to use this product. I very appreciated.

I feel you can use this for REPL C, but I think it depends on your purpose about if you should use clang-jit.
If you want to use this on multiple platform for various target architecture like not only x64 but also ARM, etc, then you should use clang-jit. This product is working only on x64 platform so far, but it is much smaller than clang-jit.

Therefore, this product can be one of options which you can choose if you think it is enough to work on only x64 and you want a small component.

It would be nice if this could be helpful and some hints for you.

@ib00
Copy link
Author

ib00 commented Feb 18, 2022

Thanks for clarification.

There's two applications:

  1. REPL

Basically, I want to use write some code on and interactively execute it.

  1. My main interest is using JIT to perform compile-time code execution. So, I want to
    parse C code and then execute it. I have parser, but now I am looking for the simplest
    possible way to execute this C code.

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