https://github.com/vlang/vlibc
libc written in V
https://github.com/vlang/vlibc
Last synced: over 1 year ago
JSON representation
libc written in V
- Host: GitHub
- URL: https://github.com/vlang/vlibc
- Owner: vlang
- License: mit
- Created: 2021-08-13T10:47:59.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-26T22:31:03.000Z (almost 5 years ago)
- Last Synced: 2025-01-16T07:26:52.250Z (over 1 year ago)
- Language: V
- Size: 13.7 KB
- Stars: 18
- Watchers: 31
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vlibc, the V libc.
A POSIX-compatible libc meant for ease of porting and performance for hobbyist
OSes, obtaining this by using the V programming language.
For now, static linking is the only mode the libc supports, to be changed
with future work.
## Porting
To learn about porting vlibc to a new OS or architecture please refer to
[this document](PORTING.md).
## Building
A Makefile is provided, featuring a `PREFIX` and `DESTDIR` variables for
choosing a path for installation. Along with those, a `TARGET_OS` and
`TARGET_ARCH` variables are provided for choosing the target to build the libc
for.
Only a V toolchain along with a C toolchain are needed for compiling the
project.
An example process would be:
```bash
make VFLAGS="-prod" CFLAGS='-O -pipe' # Optimization flags are not passed by default.
make PREFIX="/usr/" install # Install, feel free to use PREFIX or DESTDIR.
```