OSDev.org

The Place to Start for Operating System Developers
It is currently Sat Apr 27, 2024 10:18 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: How does a program written for an os find os functions?
PostPosted: Sun Oct 22, 2023 6:32 pm 
Offline

Joined: Sun Oct 22, 2023 6:28 pm
Posts: 3
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?


Top
 Profile  
 
 Post subject: Re: How does a program written for an os find os functions?
PostPosted: Tue Oct 24, 2023 6:27 pm 
Offline
Member
Member

Joined: Wed Mar 30, 2011 12:31 am
Posts: 676
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.

_________________
toaruos on github | toaruos.org | gitlab | twitter | bim - a text editor


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], FrankRay78 and 18 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group