Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 781 Bytes

README.md

File metadata and controls

35 lines (23 loc) · 781 Bytes

kcc

Build Status

C compiler written by C.

spec

it supports intel x86_64 on macOS. not Linux.

it requires make and gcc (which is installed by default on macOS).

it is tested on Macbook Pro (13-inch, 2018), macOS: 10.14.2, Processor Name: Intel Core i7.

how to run

$ git clone https://github.com/kawasin73/kcc.git
$ cd kcc
$ make test # run test
$ make
$ ./kcc "int printf();int main(){printf(\"hello world\n\");return 0;}" > tmp.s \
    && gcc -o tmp tmp.s test/head.o \
    && ./tmp # hello world

inspired by

LICENSE

MIT