2 ms·
> C doesn't leverage the free run time of the OS, when that OS is Windows. Stdio, no. Printf, no (unless you’re an adherent of LIBCTINY[1] or one of its descen
by mananaysiempre 3y ago
> C doesn't leverage the free run time of the OS, when that OS is Windows.
Stdio, no. Printf, no (unless you’re an adherent of LIBCTINY[1] or one of its descendants[2] and need only a minimal set of features). Malloc, yes—MSVC’s malloc() on Win32 has always been a thin wrapper around kernel32!HeapAlloc. Strlen or memcpy or whatnot—also possibly yes, but it’s not like minimal implementations of those are large anyway.
[1] http://bytepointer.com/resources/pietrek_libctiny_1996.htm http://bytepointer.com/resources/pietrek_libctiny_1996.htm
[2] https://www.benshoof.org/blog/minicrt https://www.benshoof.org/blog/minicrt