A naive implementation of libc for linux x86_64. This implementation is purposed to be simple and dependency-free for educational value. It implements a subset of libc without full feature support or exhaustive error handling. Feedback is encouragd.
- use
maketo build the library* - use
make examplesto build the static examples - use
make run_examplesto run the static examples
Disclaimer: This library is intended primarily for x86_64 so support for other platforms will be limited.
If you are not using the target x86_64-gnu-linux, you will need pass in the '
platform triple'. You can get your target triple with the command gcc -dumpmachine.
- For example, arm64 uses
TARGET=aarch64-linux-gnu makewill build the library. TARGET=x86_64-astral make