OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Apr 19, 2024 12:10 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Libraries in C
PostPosted: Wed Jul 09, 2003 11:00 pm 
We are developing an OS,But we can't proceed with normal C,we are in need of
basic interrupt routines,is it possible to use ROM BIOS functions,any alternatives please help us.


Top
  
 
 Post subject: RE:Libraries in C
PostPosted: Sat Jul 12, 2003 11:00 pm 
What do you mean, "normal" C? Can you still use C, just not stdio stdlib etc? If your compiler's 16-bit (eg. C--), then you should be able to use interrupts directly, otherwise you'll need DOS.H (which has int86() in my djgpp).


Top
  
 
 Post subject: RE:Libraries in C
PostPosted: Sun Jul 13, 2003 11:00 pm 
OSes weren't always the huge things that they are now. An os' job could almost be considered to provide a workin libc and task management. You might want to look into port or build libc.

If you really want to use ROM BIOS type stuff from within a PMode OS then you'll have to probably work on a virtual real mode process to do this. It's kinda like what DOS extenders do. You can find source to several free DOS extenders to see how they allow a process to run in PMode but still make BIOS calls.

-Chase


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

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 95 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