Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 637 Bytes

README.md

File metadata and controls

27 lines (23 loc) · 637 Bytes

10cc: a simple C compiler

This project is a reimplementation of rui314's 9cc

  • Supported ISA
    • x86_64
  • Assembly Language
    • Intel syntax

Features

  • operations
    • binary: +, -, *, /, ==, !=, <=, >=, <, >, =
    • unary: +, -, &, *, sizeof, ++, --
  • statements
    • if, for, while, return
  • types
    • int, char, pointer, array
  • local/global variable
  • function
  • variable scope
  • string literal
  • comments
  • GNU statement expression
  • initialization of incomplete array

Reference

低レイヤを知りたい人のためのCコンパイラ作成入門