Skip to content

anko9801/hcc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HCC

  • hcc is a small toy compiler for C language.

Roadmap

  • support C11 features
    • arithmetic operations
    • pointer arithmetic
    • arrays
    • struct
      • a copy of struct
        • local assignment
        • argument
        • return value
    • enum
    • type checker
      • support type qualifiers
    • implicit type conversions
    • initializers
      • scalar
      • array
      • struct
      • designated initializers
    • preprocessor
      • include
      • define
    • self-hosting
    • complex declarators
    • alignment specifiers
    • float-point values
  • optimizations
    • linear scan register allocation
    • naive mem2reg
    • constant folding
    • copy propagation
    • dead code elimination
    • tail call optimization
    • loop unwinding
  • misc
    • improved error messages
    • better support of debuggers
    • support targets other than x86_64

About

C Compiler implemented in C

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages