elvm icon indicating copy to clipboard operation
elvm copied to clipboard

Will 9cc be supported?

Open jserv opened this issue 6 years ago • 1 comments

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?

jserv avatar Apr 24 '19 14:04 jserv

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 :(

shinh avatar May 02 '19 03:05 shinh