Skip to content

diohabara/ccc

Repository files navigation

ccc

ci

An experimental C compiler.

how to develop

If you're using Ubuntu, you can use the commands without x.

dependencies

build

When you want to build Docker env,

docker build . -t ccc

help

When you want to know what options exist,

make help

lint/format

When you want to check/format source code,

make lint

test

When you want to see if the compiler is working,

make test

debug

If you want to debug interactively, use gdb.

gdb ./ccc

If you want to debug main() { a = 1; b = 2; return 3; } in gdb,

r 'main() { a = 1; b = 2; return 3; }'

clean

When you want to remove object files,

make clean

TODO

  • self host
    • make self-host

references