1
0
Fork
You've already forked antcc
0
forked from lsof/antcc
A little C compiler
  • C 99.5%
  • Shell 0.4%
  • Makefile 0.1%
2026年01月13日 18:23:59 +01:00
aarch64 aarch64 codegen fixes 2026年01月08日 12:34:44 +01:00
c driver: -iquote, -isystem, etc 2026年01月12日 19:22:06 +01:00
ir simpl: fix simplifying known cond branches 2026年01月11日 11:44:22 +01:00
obj aarch64: LDR literal, cmp value 2026年01月02日 14:40:06 +01:00
test cpp: fix pasting ident+keyword 2026年01月09日 19:24:41 +01:00
x86_64 x86_64/isel: fix edgecase of fixarg from seljmp derefing nullpointer 2026年01月09日 13:56:35 +01:00
.editorconfig Add .editorconfig 2023年06月22日 20:17:24 +02:00
.gitignore Use a configure script, query system toolchain for default include paths 2026年01月01日 12:01:45 +01:00
bootstrap.sh ir: arena-backed linked list for uselists 2025年12月24日 13:04:38 +01:00
common.h driver: -iquote, -isystem, etc 2026年01月12日 19:22:06 +01:00
configure target: accept amd64 as x86_64 synonym 2026年01月10日 11:52:51 +01:00
embedfilesdir.c _Alignof and stuff 2025年12月11日 17:57:07 +01:00
endian.h c: bitfield initialzers 2025年10月24日 21:25:31 +02:00
io.c io: fix hashtable lookup of builtin include files 2026年01月11日 09:51:51 +01:00
LICENSE license and readme 2025年09月14日 19:41:28 +02:00
main.c driver: -iquote, -isystem, etc 2026年01月12日 19:22:06 +01:00
Makefile basic CSE 2026年01月04日 17:44:48 +01:00
mem.c arena: make sure to zero initialize some stuff 2025年12月22日 09:00:25 +01:00
README.md update README 2026年01月09日 22:29:48 +01:00
targ.c target: accept amd64 as x86_64 synonym 2026年01月10日 11:52:51 +01:00
todo.txt Use a configure script, query system toolchain for default include paths 2026年01月01日 12:01:45 +01:00
type.c create distinct interned string type 2025年12月15日 22:39:52 +01:00
type.h some static assertions for packed type sizes 2025年12月20日 19:32:13 +01:00
version.h 0.1.2 2026年01月13日 18:23:59 +01:00

antcc is a C compiler using its own custom backend. Currently still in a experimental stage, but can compile successfully some real-world C codebases (e.g. lua, sqlite3, oksh).

Report bugs in the issue tracker, or by sending me an email.

Supported targets

  • For now just x86-64 POSIX (Sys-V + ELF). Only tested on linux so far.

Building

./configure
make # outputs ./antcc executable
# or
make opt #compile with optimizations
# or
make dbg #compile with UBsan and Asan

Usage

The driver is still incomplete but it mimics that of compilers like gcc. antcc compiles translation units to object files directly, but the driver will invoke an external linker command to output an executable if -c isn't passed.