Skip to content

Latest commit

 

History

50 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:

  • CC: C compiler;
  • CFLAGS: C compiler flags;
  • LDFLAGS: Linker flags;
  • BUILD_TYPE: Debug or Release;
  • BUILD_STATIC: Force statically linking objects;
  • INSTALL_PREFIX: Installation prefix for built binary;

Installation

The compiled binary will be located inside bin directory. It can also be installed using the INSTALL_PREFIX=/usr/local option.

su -c 'make INSTALL_PREFIX=/usr/local install'

For portable installation:

make install

TODO

  • Develop the entire game Data XML API;
  • Provide 7CC API documentation;
  • Crossplatform code linking;
  • 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