4 ms·
I see, in this case the author's compiler was written in c++, but you can use ocaml instead to build the IR. There is even a version of their great tutorial ser
by tylersmith 6y ago
I see, in this case the author's compiler was written in c++, but you can use ocaml instead to build the IR. There is even a version of their great tutorial series using ocaml you can check out. All the concepts he outlines are the same, just convert the c++ bits to the corresponding ocaml version of the IRBuilder. Then you can go from your language to llvm IR all in ocaml.
https://llvm.org/docs/tutorial/OCamlLangImpl1.html https://llvm.org/docs/tutorial/OCamlLangImpl1.html
- CGamesPlay 6y agoAh, I understand now. Thanks for helping!