acc/README.md
2023-02-07 10:32:03 +08:00

34 lines
494 B
Markdown

# acc
A zero-dependence (sub) C compiler working in progress written in pure ISO C11.
## Build from source
Make sure you have `gcc` and `make` on your PATH.
If you don't, here's command for ubuntu:
```
sudo apt install build-essential
```
To build, run:
```
make
```
## Usage
```
acc target inputfile (outputfile)
```
Output targets now includes:
- `x86_64`: Intel's x84-64 ASM
- `llvm`: LLVM's IR
- `ast`: (used for debugging) Abstruct Syntax Tree
Example:
```
acc x86_64 test.c
```