Archived
2
1
Fork
You've already forked ziglibc
0
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.
  • Zig 52.6%
  • C 46.7%
  • Assembly 0.7%
2024年05月07日 20:29:49 -07:00
inc choe: initial commit 2024年05月07日 20:29:49 -07:00
src choe: initial commit 2024年05月07日 20:29:49 -07:00
tests choe: initial commit 2024年05月07日 20:29:49 -07:00
.gitignore choe: initial commit 2024年05月07日 20:29:49 -07:00
build.zig choe: initial commit 2024年05月07日 20:29:49 -07:00
build.zig.zon choe: initial commit 2024年05月07日 20:29:49 -07:00
capi.txt choe: initial commit 2024年05月07日 20:29:49 -07:00
filecheck.zig choe: initial commit 2024年05月07日 20:29:49 -07:00
LICENSE.txt choe: initial commit 2024年05月07日 20:29:49 -07:00
README.org choe: initial commit 2024年05月07日 20:29:49 -07:00
ziglibcbuild.zig choe: initial commit 2024年05月07日 20:29:49 -07:00

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.