How does a program written for an os find os functions?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
vinny
Posts: 3
Joined: Sun Oct 22, 2023 6:28 pm

How does a program written for an os find os functions?

Post by vinny »

I plan on writing an operating system, mainly in c, and I want the user to be able to run custom programs. How does the program use operating system functions without having to recompile the os?

Do I need to make custom header files and linker scripts for the cross compiler?
klange
Member
Member
Posts: 679
Joined: Wed Mar 30, 2011 12:31 am
Freenode IRC: klange

Re: How does a program written for an os find os functions?

Post by klange »

While designs for user programs can vary, generally they do not link to the kernel or "use operating system functions" directly - they use system calls.
Post Reply