I always wonder what language was the C/C++ runtime and standard library written in. At first I thought it is a casual C/C++ language, but to be able to talks with the machine I doubt C/C++ is enough. Therefore, I think it may be assembly language instead. If it is either C/C++ or asm language, then why don’t I really see source codes flying around? or maybe I’m lacking in searching skill…
I always wonder what language was the C/C++ runtime and standard library written in.
Share
They are typically written in their host language, interoperating with the operating system API to obtain things that can’t be obtained natively. Many features are written in pure language- for example, the containers & algorithms section of the C++ Standard library pretty much has to be written in C++. In fact, nearly the entire C++ Standard library has to be written in C++, because it’s templated. I don’t know why you haven’t found any source- the Microsoft CRT source is available to any dev, I think, I’ve certainly seen questions on here posting the CRT source, and the GNU libc++ is open source, I’m pretty sure.