A libc implemented in zig
This repository has been archived on 2024年08月03日 . You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
|
|
||
|---|---|---|
| inc | choe: initial commit | |
| src | choe: initial commit | |
| tests | choe: initial commit | |
| .gitignore | choe: initial commit | |
| build.zig | choe: initial commit | |
| build.zig.zon | choe: initial commit | |
| capi.txt | choe: initial commit | |
| filecheck.zig | choe: initial commit | |
| LICENSE.txt | choe: initial commit | |
| README.org | choe: initial commit | |
| ziglibcbuild.zig | choe: initial commit | |
ziglibc
A libc implemented in zig;
"libc" includes implementations for the C Standard and the Posix Standard.
How to Use
As of now, you can use ziglibc by running `zig build` on this repository. Then add these arguments to your `zig cc` command line:
``` zig cc \ -nostdlib \ -I PATH_TO_ZIGLIBC_SRC/inc/libc \ -I PATH_TO_ZIGLIBC_SRC/inc/posix \ -I PATH_TO_ZIGLIBC_SRC/inc/linux \ -L PATH_TO_ZIGLIBC_INSTALL/lib \ -lstart \ -lc ```
Currently builds with the latest zig master version.
Credits
ziglibc is based on Jonathan Marler's ziglibc. It was modified in order to make the build.zig file more minimal and to add new features.