Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Will 9cc be supported? #62

Open
jserv opened this issue Apr 24, 2019 · 1 comment
Open

Will 9cc be supported? #62

jserv opened this issue Apr 24, 2019 · 1 comment

Comments

@jserv
Copy link

jserv commented Apr 24, 2019

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?

@shinh
Copy link
Owner

shinh commented May 2, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants