Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 588 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 588 Bytes

C compiler toolchain targeting Linux x64, written from scratch in C. Many features are missing, but it is complete enough to self-host.

(Self hosting is temporarily broken while working on float support)

Includes:

  • libc
  • C frontend
  • SSA form IR
  • x64 backend
  • x64 Assembler (for the in-memory format, and for textual assembly)
  • ELF object file output
  • Linker
  • ar clone

Build-time dependencies:

  • A C compiler
  • nasm
  • Python 3

To build, run build.py. There are various subcommands for running tests, static checks, bootstrapping, etc. See build.py --help for more info.