esseks / monicelli

An esoteric programming language, come se fosse antani.
GNU General Public License v3.0
1.32k stars 52 forks source link

MCC should be able to directly output the executable. #17

Closed massix closed 9 years ago

massix commented 9 years ago

Hello, just an idea here, we could exploit the libclang APIs in order to directly compile the generated C++ code into an executable. This will allow the future developers to write more sophisticated code using only mcc, thus letting MCC to break into the world of real production-ready compilers. I can only imagine the future of the CS universities, teaching Monicelli instead of that shitty Java.

We might probably add an option to mcc (-c?) to avoid the compilation and generate only the intermediary code.

The drawback is that we might probably have to migrate the compilation of mcc to clang++ as I'm not 100% sure the ABIs are compatible.

esseks commented 9 years ago

Just chiming in to say that a llvm frontend is on the way and should be expected shortly, together with a major overhauling of the codebase!

esseks commented 9 years ago

The LLVM frontend has finally arrived. Closing this :)