Skip to content
This repository has been archived by the owner on Jul 18, 2022. It is now read-only.

TerakomariGandesblood/kcc

Repository files navigation

kcc

Build Coverage Status GitHub License 996.icu GitHub Releases GitHub Downloads Bugs


A small C11 compiler

Environment:

  • Linux
  • gcc 11.1
  • gcc/clang(Request to support C++17)

Libraries:

  • LLVM 12
  • fmt
  • magic_enum
  • Boost
  • libreadline-dev(for test)

Build

cmake -S . -B build
cmake --build build --config Release -j"$(nproc)"

Install

sudo cmake --build build --config Release --target install

Uninstall

sudo cmake --build build --config Release --target uninstall

Use

Same as gcc/clang, but only a few common command line arguments are implemented

kcc test.c -O3 -o test

Reference