I am creating a toy language, for my personal use and to help me learn rust.
Right now I am creating the interpreter. I have read some articles on the optimizations that interpreters carry out.
One thing that really interested me, is the ability to JIT.
I am looking for a way to compile rust code to LLVM IR, within my rust interpreter.
Then proceed to invoke that LLVM IR code and run it, again within my Rust Interpreter.
I have seen that this is possible with C++. What I am mainly looking for is a safe way to use LLVM within Rust.
If anyone has any suggestions, it will be much appreciated.