4 ms·
What would you suggest someone use instead? As someone looking to write his own language, I'm very interested in alternatives to LLVM.
by striking 10y ago
What would you suggest someone use instead? As someone looking to write his own language, I'm very interested in alternatives to LLVM.
- shakna 10y agoUsing a system like LLVM locks you into C-like behavior. You can work around it, but it's harder and can come with unnecessary overheads. Nanopass is one approach to compiling that tends to be more general. However, LLVM is great if you just want to compile without learning the intracies of assembly. It even gives you access to multiple backends. Linking against a framework let's you get up to speed faster, and someone else handles the security in your compiler, for the most part. But, when you need flexibility, you'll probably need to do it yourself. (See Scala and Dotty, as Scala becomes even less Java-like).