2023-02-07 21:32:38 +08:00
2023-02-07 21:32:38 +08:00
2023-02-07 21:32:38 +08:00
2023-02-07 21:32:38 +08:00
2023-02-07 21:32:38 +08:00
2023-02-07 01:21:40 +00:00
2023-02-07 10:32:03 +08:00
2023-02-07 10:32:03 +08:00
2023-02-07 10:32:03 +08:00

acc

A zero-dependence (sub) C compiler working in progress written in pure ISO C11.

Build from source

Make sure you have gcc and make on your PATH. If you don't, here's command for ubuntu:

sudo apt install build-essential

To build, run:

make

Usage

acc target inputfile (outputfile)

Output targets now includes:

  • x86_64: Intel's x84-64 ASM
  • llvm: LLVM's IR
  • ast: (used for debugging) Abstruct Syntax Tree

Example:

acc x86_64 test.c
Description
ACC: Another C Compiler
Readme 192 KiB
Languages
C 99.2%
Lua 0.8%