janneku/jcc
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
jcc - Small C compiler for x86-64
Copyright 2012 Janne Kulmala <janne.t.kulmala@iki.fi>
Program code is licensed with GNU LGPL 2.1. See COPYING.LGPL file.
The generated code uses GNU assembler syntax.
Implemented:
- Register allocation
- Type system
- Pointers
- char/short/long integer sizes
- Basic arithmetic
- if-else
- while() loops
- for() loops
- Function calls
- Function arguments
- String literals
- Structs
Missing features:
- Automatic type conversion
- Bit operations
- Logic || &&
- Proper type preferences
- Assigment operators += -=
- Arrays
- Typedefs
- do {} while()
- Type casting