- Joined
- Aug 1, 2023
- Messages
- 43
cjc is a C to Jass2 compiler. It takes as input a .c source file and a runtime.j file and generates an output a.j file.
cjc is based on Rui Ueyama's chibicc C compiler, but instead of generating x86 assembly, it generates pseudo-instructions that are implemented in Jass2.
cjc is a simple code generator built on top of chibicc.
More information and examples on using cjc can be found in the cjc.zip archive.
You could also read the Simple setup for scripting Warcraft 3 maps in C.
updates:
* 2024/04/26 - fixed an issue with arguments to functions returning structs with size > 16 bytes
Attachments
Last edited: