I'm trying to write a programming language and being stuck at code generation phase.
After thorough consideration, I decide to use LLVM as my back-end because I don't want to deal with obscure low-level stuff (generating assembly is fine to me, but I need more knowledge on linking to accomplish my work).
One stumbling block is that my work is not on C++. It means I could not use ready LLVM classes in my code.
Could I generate LLVM IR code in the form of characters string, save it to file (or no need?) and then compile it? In the case I could, is there any other form that I can generate to help LLVM run faster?
Special thanks to any advice.