4 ms·
The greatest trick libc ever pulled was convincing the world it didn't exist.
by mindslight 14y ago
The greatest trick libc ever pulled was convincing the world it didn't exist.
- jpd 14y agoIsn't libc just a set of libraries and therefore not considered a runtime environment? C does have a small runtime environment, but I'd say it's the existence of the function call stack, as well as the on_exit system that's built into the core language.
- mseepgood 14y agoOn Windows it's even called "Microsoft Visual C Run-Time" (MSVCRT): http://en.wikipedia.org/wiki/Windows_library_files#Msvcrt.dll_and_Msvcpp.dll http://en.wikipedia.org/wiki/Windows_library_files#Msvcrt.dl...
- ori_b 14y agoAs well as things like floating point and large integer emulation, startup code, etc. __divdi3, for example, divides 64 bit integers on i386. See /usr/lib/x86_64-linux-gnu/{crt1.o,crti.o,crtn.o,gcrt1.o,Mcrt1.o,Srct1.o}.
- coldtea 14y agoWell, it's so small compared to "real" runtimes, it might as well not exist.
- sixbrx 14y agoI think your parent comment means runtimes in the sense of a garbage collector or other services that run concurrently with user code or are scheduled periodically, which will put you in a world of hurt if you touch one of their objects without asking its permissions and/or playing by its rules.
- epsylon 14y agoYou can compile C code without a libc.