Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/felipensp/vtcc
TCC compiler translated to V lang
https://github.com/felipensp/vtcc
c compiler tcc vlang
Last synced: about 4 hours ago
JSON representation
TCC compiler translated to V lang
- Host: GitHub
- URL: https://github.com/felipensp/vtcc
- Owner: felipensp
- License: mit
- Created: 2024-02-17T10:54:09.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-08-11T17:43:00.000Z (3 months ago)
- Last Synced: 2024-08-11T19:13:28.685Z (3 months ago)
- Topics: c, compiler, tcc, vlang
- Language: C
- Homepage:
- Size: 2.65 MB
- Stars: 41
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vtcc
TCC compiler translated to V lang (thanks to `vlang/c2v`)Official TCC repo: https://repo.or.cz/tinycc.git
TCC commit reference: _76d605192dae84c172722c3d73bf546a064b7e1c_
*Currently it is x86-64 only.*
### Building vtcc
`v run make.vsh [vtcc src path]`
This will generate `bt-exe.o`, `bt-log.o`, `dso.o`, `libtcc1.o`, `libtcc1.a` and `vtcc` executable.
### How to use
`./vtcc hello.c && ./a.out` or `./vtcc -run hello.c`
For full help (just like `tcc -h`), use `./vtcc -h`.
### Building itself
```
$ v -d vtcc_dir=`pwd` -o test.c .
$ ./vtcc test.c -lgc -ldl -lpthread
$ ./a.out -run hello.c
```### Building Vlang
```
$ v -o vlang.c cmd/v # on vlang dir
$ vtcc vlang.c -lpthread
```