2 ms·
> freestanding doesn't have this idea of you "running" a program since that implies the existence of some supervisory agent It's perfectly possible to build fr
by matheusmoreira 4y ago
> freestanding doesn't have this idea of you "running" a program since that implies the existence of some supervisory agent
It's perfectly possible to build freestanding Linux programs. The only thing you need is exactly one system call function to get access to every single Linux kernel functionality. All this function needs to do is move parameters to specific registers, execute a system call instruction and return the result. With this single function, a freestanding program can do anything.
This is possible on Linux because it has a stable system call ABI. Other systems don't have that, they make people link to system libraries. Not sure what SerenityOS does but I assume they provide C++ OS libraries.
- LoganDark 4y agoSerenityOS is a monorepo, so as long as the entire OS + userland compiles, they don't really have a stable ABI yet.