Simple C compiler developed by @ShinyaKato
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
tests
.gitignore
LICENSE
Makefile
README.md
cpp.c
error.c
gen.c
lex.c
main.c
map.c
map.h
node.c
parse.c
scan.c
sk2cc.h
string.c
string.h
type.c
vector.c
vector.h

README.md

sk2cc

Simple C compiler developed by @ShinyaKato

build

Run make command, then sk2cc is generated.

$ make sk2cc

compilation

Compiler sk2cc recieves path to a source file and generates assembly to stdout. To generate executable, use gcc.

$ ./sk2cc examples/queen.c > queen.s
$ gcc queen.s -o queen
$ ./queen

example

See example programs that can be compiled with sk2cc in examples.