if userland in asm, no need for libc?

Lorenzo Salvadore phascolarctos at protonmail.ch
Tue Jan 15 12:58:36 UTC 2019

> in continuum to my previous mail about libc;
> if the whole of userland and various other toolkits were written
> in assembly language, would there be no need for libc, that is
> if "c" were not needed to be supported at all?
> do assembly language programs have the capacity to make kernel
> calls directly? i.e., without going through any libraries?
> pardon my naive questions, i don't have a background in computer
> science nor enough self-training.

Yes, you can make kernel calls directly. See here for example:

Still, I discourage you from using Assembly too much: it is not easy to write
in Assembly, don't use it if you can do what you want to do in a higher level
language. You should rather use Assembly only for low level interaction with
hardware or to optimize code when compilers do not already optimize enough
for your tastes/needs.

Lorenzo Salvadore.

More information about the freebsd-questions mailing list