Conversation
93be60e to
502b22c
Compare
4148f0f to
678ebef
Compare
4f8eea0 to
829dec9
Compare
af4abd9 to
071a4b3
Compare
5e954fc to
3425a16
Compare
Newlib is a multitarget libc implementation. This commit only adds the posibility to build it easily, and setup it so that it can be used with our custom toolchain in order to compile our future userland executables. It is still missing the required syscall implementations, since most (if not all technically) have yet to be implemented inside the kernel. We should now quickly implement the first few ones (exit, fds, etc ...) in order to REALLY compile our own program.
Our previous libc implementation simply included the most basic mem* functions and such, commonly used inside the kernel. This worked well when working with a 'bare' gcc target (no real libc), but this is no longer the case. This library of useful and common libc function implementations has now been renamed to 'libk' instead.
These are now always present inside our gc target's include directory. If someone encounters a problem with header include paths, they should just use our target instead of the system they've installed.
The files/directories to be cleaned are stored inside a variable. This lets the included build.mk define what should or should not be cleaned along with their target, instead of having a big chunk of arbitraty RM targets in the main Makefile.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
LibC
No way am I implementing my own libc !
Candidates
Here are the plausible candidates for our libc implementation.