7cc is inspired by most C compilers. But instead of compiling C code to machine language, it translates Lua calls to the given XML files.
7cc operation is simple at first, but later it will be fully developed as compiler and interpreter.
At this very moment, 7cc only works with Lua language.
7cc depends on Lua only and it is required to compile:
git clone https://codeberg.org/SimplyCEO/7cc.git
cd 7cc/
make BUILD_TYPE=ReleaseMakefile:
| FLAG | DESCRIPTION | VALUES | DEFAULT |
|---|---|---|---|
| CC | C compiler | gcc/clang/tcc |
clang |
| CFLAGS | Preprocessor flags | User defined | -DLUA_32BITS -Wall -Wextra -Werror |
| LDFLAGS | Linker flags | User defined | |
| OSNAME | The Operating System type name | unix32/unix64/win64 |
unix32 |
| BUILD64 | Compile binary for 64-bit architecture | 0/1 |
0 |
| BUILD_TYPE | Define flags based on type | Debug/Release/None |
Debug |
| BUILTIN_LIBC | Use the compiled musl toolchain from vendor |
0/1 |
0 |
| BUILTIN_LUA | Use the compiled library from vendor |
0/1 |
0 |
| INSTALL_PREFIX | Installation prefix for built binary | User defined | /usr/local |
The compiled binary will be located inside bin directory.
su -c 'make install'For portable installation:
make INSTALL_PREFIX=./build install- Provide 7CC API documentation;
- Release stable version to public;