/tcc

[WIP] My toy compiler for learning chibcc implementation in c.

Primary LanguageCMIT LicenseMIT

tcc

[WIP] A toy compiler implemented chibicc aims to self-hosting.

How to run test: make test

Roadmap

  • main task
    • arithmetic operations
    • type suppoprt
      • char
      • int
      • string
      • void
    • variable
      • gloval variable
      • local variable
    • type adder and checker (minimal)
    • array
      • int
      • string
    • tilde operator
    • postfix operator
    • comparison operator
    • boolean statement
    • block handle in the same function
    • call function and definition
    • if, while and for statements
    • local assignment
    • char literal
    • typedef operator
    • pointer and reference operator
    • gnu expression statements
    • typedef operator
    • 'hello world'
      • 'hello world' with static library
      • 'hello world' with scratch
    • structure
      • initialize and assignment
    • scratch some library
  • other task
    • test in C ( rewite test written shell in C )
    • construct environment with docker

Dependencies

  • gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)