using librarys in your os?
Posted: Sun Jun 06, 2010 1:31 pm
I am wondering if I can compile/link a library one of the standard c libraries into my os.
I always compile/link with nodefaultlibs switch so that my output kernel.bin file doesn't depend on any outside dll ,...etc
My whole os is written from my functions...etc no outside libraries but now I am wondering if I can use outside libraries and what the extend of using outside stuff is? Plus how to use outside libraries in my os if it is possible duno maybe all it takes is adding the library with a linker switch at command line to ld.
My problem now is
is their away to compile/link a library and all it's dependences into my kernel.
In theory what would go wrong in compiling all the microsoft dll's ,...etc into my kernel won't it just have all the functionalites of microsofts os's ?
Either way I am new to compiling third party dll into a kernel what can go wrong?
I have my linker script set to binary output so if I provided the libraries on the command line to ld will it copy all the dependences of those libraries,..etc into my kernel.bin
Will I be all set or will their still be dependences , errors , problems in my kernel from this that I am not aware of???
I always compile/link with nodefaultlibs switch so that my output kernel.bin file doesn't depend on any outside dll ,...etc
My whole os is written from my functions...etc no outside libraries but now I am wondering if I can use outside libraries and what the extend of using outside stuff is? Plus how to use outside libraries in my os if it is possible duno maybe all it takes is adding the library with a linker switch at command line to ld.
My problem now is
is their away to compile/link a library and all it's dependences into my kernel.
In theory what would go wrong in compiling all the microsoft dll's ,...etc into my kernel won't it just have all the functionalites of microsofts os's ?
Either way I am new to compiling third party dll into a kernel what can go wrong?
I have my linker script set to binary output so if I provided the libraries on the command line to ld will it copy all the dependences of those libraries,..etc into my kernel.bin
Will I be all set or will their still be dependences , errors , problems in my kernel from this that I am not aware of???