by matheusmoreira · 3y ago · 0 comments
The appeal is you can eliminate every single dependency. Linux is the only kernel with a stable user space interface. It's the only system where you can do this.
With a single 6-ary system call function, you can do anything you want on Linux. There's no need for anything else.
> What's the upside of using the (relatively large and complex) Linux kernel for this?
The kernel's massive amount of features and drivers for one.
> I doubt it's reliability, since the kernel in this particular configuration is essentially untested.
This is not a kernel configuration though. User space is completely separate from the Linux kernel.
RTEMS, Azure RTOS, AWS RTOS, NuttX, Mbed...
The system call numbers are stable on most unixes (including XNU/Darwin). It's just Windows that doesn't have stable syscall numbers.
Years ago I wrote a rationale for such a thing in my liblinux project:
https://github.com/matheusmoreira/liblinux/blob/master/READM...
I don't maintain it anymore because nolibc is better but there's a lot of references in that text if you'd like to read them.