https://github.com/yutopp/cc
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/yutopp/cc
- Owner: yutopp
- Created: 2018-09-02T14:08:55.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-09-28T08:17:49.000Z (over 5 years ago)
- Last Synced: 2025-01-20T10:49:04.347Z (4 months ago)
- Language: C
- Size: 53.7 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cc
`cc` is a C compiler for my study purpose. A aim of this project is to create a C compiler which is modularized, no memory leaks, easy to modify codes and able to self hosting! Currently, highly work in progress.
This compiler has 5 phases to generate an assembly.
- Lexing
- Parsing
- Analyzing
- IR generating
- ASM generating## How to build
``` shell
> make
```## How to use
``` shell
> ./cc examples/simple_00.c
```Currently, a name of the generated executable is fixed to `a.out`.
```
> ./a.out
Hello world
```# Author
@yutopp