Talk:C Library

From OSDev.wiki
Revision as of 04:57, 5 September 2012 by Solar (talk | contribs)
Jump to navigation Jump to search

types

It sounds to me like the "types" section is totally backwards. Bewing 20:00, 31 August 2012 (CDT)

I changed the name of the section to the more appropriate "Versions," and slightly improved it. Do you have anything more specific in mind? --Love4boobies 09:16, 2 September 2012 (CDT)
The new wording with the extra information is better. However, first, the way osdev uses these libs, the words "hosted" and "freestanding" do not have useful meanings -- they add confusion. The words "kernel" and "userland runtime library" have much clearer meanings, and I think these words need to be added. Second, isn't the "hosted" library the small, incomplete, subset one that is linked into the kernel? The article text has it the other way around. If I have it wrong, that just shows how confusing the terms are. ;) --Bewing 15:24, 4 September 2012 (CDT)
Damn, I knew I couldn't resist doing the occasional edit... so: The "freestanding" part of the library are all those headers that add defines and typedefs, but no code. As such, they require neither a runtime nor a linker. A "hosted" library is the whole of it, i.e. including those headers that require accompaining object code. This has nothing to do with kernel / userland. I would expect virtually every kernel to use (a subset of) the hosted lib. -- Solar 23:57, 4 September 2012 (CDT)