3 ms·
LLVM has JIT users, so LLVM can't do this.
by sanxiyn 4y ago
LLVM has JIT users, so LLVM can't do this.
- Arnavion 4y agoYes, any compiler-as-a-library software can't do this. And compilers-as-libraries are becoming more popular these days since being a library makes it easier to integrate the compiler with tooling, like linters and IDEs / language servers.
- hardware2win 4y agoWut? How they were written before if not as library? People didnt write good, modular software "back in the days"?
- Arnavion 4y agoYou say "before" as if it's a thing of the past :) gcc is still not written as a library. clang became famous partly for providing a C compiler as a library. Though gcc's case is specifically because of ideology. Even ignoring ideology, there used to be no need to write compilers as libraries, because the only binary that would use such a library was the compiler itself. The only purpose of the compiler was to be invoked from a shell / build script to compile code. That is changing with things like IDEs that need "compiler services" becoming more mainstream, as I said.