8cc.vim: Pure Vim script C Compiler

8cc.vim is a unique project where a small C compiler, 8cc, has been written entirely in Vim script. This project utilizes ELVM, a Virtual Machine, to compile C code into various targets including Vim script. While 8cc.vim is significantly slower than traditional compilers, it successfully compiles and runs C code on the Vim script Virtual Machine. The installation process involves cloning the repository and using packadd or a plugin manager. Users can compile C code using the :EccCompile command and run the compiled Vim script code using :EccRun. Overall, 8cc.vim is an interesting experimental project, highlighting the capabilities of Vim script in unconventional ways.

https://github.com/rhysd/8cc.vim

To top