Skip to content

Guo-Haowei/c.c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

c.c

Build

$ cmake -S . -B build -A Win32
$ cmake --build build --config Debug

Self Hosting

$ py -u scripts/preprocess.py # This preprocess the source code, because c.c doesn't have preprocessor
$ ./c hello.c                 # hello world
$ ./c c.c c.c hello.c         # self hosting

Testing

$ # copy c.c.exe to root dir
$ py -u scripts/run_tests.py

This project is a tiny C interpreter inspired by c4. Only works on 32-bit arch becase the program assumes int and pointer has the same size.

About

A self-hosting C interpreter in 1000 lines

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors