-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
39 lines (26 loc) · 933 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
ABOUT
=====
plibc (p for pico) is a small 'replacement' for a traditional C standard
library such as glibc.
It's main goal is to be educational and expose the various challenges involved
in creating a glibc replacement. As such it's designed to be easy to read, not
nessecarily performant (or strictly compliant). In no way is it a full
replacement for a traditional library like glibc/ulibc. Indeed many of the
expected features for a C library will probably go un-implemented.
To create the library:
====================
mkdir build
cd build && ../configure
make
Run tests
=========
make check
install plibc
================
make install
Using plibc
===========
To actualy use plibc in your programs you need to link with the following:
gcc -nostdlib -o foo start.S foo.c -lplibc
start.S must be used to call main() within your program, and is generally
platform specific, an example can be found at src/asm/start.S