Open jserv opened 5 years ago
It should be technically possible, but I'm not interested. I'm more interested in re-targetting more complex compilers which are used for actual usecases. I've ever tried to replace 8cc by another compiler, clang:
https://github.com/shinh/elvm/tree/llvm https://github.com/shinh/llvm/tree/elvm https://github.com/shinh/clang/tree/elvm
I implemented the same or more functionalities with LLVM/clang as the current 8cc-based implementation. The final goal was to run a C++ compiler on esolangs. Before I achieve the goal, I realized ELVM needs to be redesigned significantly to run real world programs with the modified LLVM/clang. If I have infinite time, I'd restart this project with LLVM/clang, but I don't have time right now :(
9cc is a successor of 8cc, 9cc can be understood extremely easily while creating a compiler that generates reasonably efficient assembly. Will 9cc be modified to generate elvm IR?