Page 1 of 1

Libraries and your OS

Posted: Mon Jul 16, 2007 7:55 am
by AndrewAPrice
Have you ported the C or C++ standard libraries to your OS? Or do you have completely independent functions?

From what I've read, if I port newlib and try to get printf working, I have to represent my console as a file and modify my VFS to support it. So for now, I've decided to make my own (non-compliant) C++ library.

With the OO approach I'm trying to take, I found the standard libraries a little to restricting. But nothing says at a later stage I couldn't make a standard C or C++ library that wraps around mine.

Posted: Mon Jul 16, 2007 2:32 pm
by AJ
Hi,

At the moment I have just created a small subset of the C standard library for my OS to enable me to learn about interfacing with my kernel and to play around with implementations.

Next on the list is porting something like newlib - looks like a tutorial has just gone up on that so I'll be following it in the next few days.

Cheers,
Adam

Posted: Mon Jul 16, 2007 2:55 pm
by Candy
I tend to implement the headers first, then the implementation, mostly when I need it. I do conform to the standard C and C++ libraries. Both also have a kernel subset which is linked to the kernel.

Posted: Mon Jul 16, 2007 6:26 pm
by Dex
Solidus is working on Clib for DexOS
http://tonymac.asmhackers.net/Wiki/inde ... =Libs.CLib