aboutsummaryrefslogtreecommitdiffhomepage
path: root/README.md
blob: d0bfcb7f6caf986da8cae0f1b1197ef21ec1367a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
`antcc` is a C compiler using its own custom backend. Currently still in a
experimental stage, but can compile successfully some real-world C codebases (e.g. lua, sqlite3, oksh).

Report bugs in the [issue tracker](https://codeberg.org/lsof/antcc/issues), or
by sending me an email.

# Supported targets

- For now just x86-64 POSIX (Sys-V + ELF). Only tested on linux so far.

# Building

```
./configure

make   # outputs ./antcc executable
# or
make opt #compile with optimizations
# or
make dbg #compile with UBsan and Asan
```

# Usage

The driver is still incomplete but it mimics that of compilers like gcc.
`antcc` compiles translation units to object files directly, but the driver
will invoke an external linker command to output an executable if `-c` isn't passed.