Libraries and your OS

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
Post Reply
User avatar
AndrewAPrice
Member
Member
Posts: 2299
Joined: Mon Jun 05, 2006 11:00 pm
Location: USA (and Australia)

Libraries and your OS

Post 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.
My OS is Perception.
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Post 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
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Post 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.
User avatar
Dex
Member
Member
Posts: 1444
Joined: Fri Jan 27, 2006 12:00 am
Contact:

Post by Dex »

Solidus is working on Clib for DexOS
http://tonymac.asmhackers.net/Wiki/inde ... =Libs.CLib
Post Reply