Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1.27 KB

README.md

File metadata and controls

39 lines (27 loc) · 1.27 KB

libfingc

LICENSE

libfingc is an implementation of standard C library. The goal of this project is to provide simple, yet functional libc.

The whole projest is WIP, so it does not have all required implementations to perform complete functions.

Porting

To work on different OSes the library requires a porting layer with appropriate syscalls. The porting layer is defined in the arch directory. Currently the file to port functionality is arch_al.c and may be accompanied by the syscall or HAL files. The file crt0.S should also be ported as initialization code.

Compilation

This library requires gcc. The compilation can be performed by executing the following command in the root of the repository:

make

Testing

The testing suite requires ctags. The testing can be performed by compiling library first. Then in the test directory:

make
make run

Usage

The library builds as a static library and set of include files. Use it in place of normal libc - this can require cross-compiling or at least usage of -nostdlib flag to compiler.

The library also requires initialization code, which is WIP.