Skip to content

Latest commit

 

History

61 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

7 Days to Die Code Compiler

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.

Building

7cc depends on Lua only and it is required to compile:

git clone https://codeberg.org/SimplyCEO/7cc.git
cd 7cc/
make BUILD_TYPE=Release

Makefile:

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

Installation

The compiled binary will be located inside bin directory.

su -c 'make install'

For portable installation:

make INSTALL_PREFIX=./build install

TODO

  • Provide 7CC API documentation;
  • Release stable version to public;

About

7 Days to Die Code Compiler.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages