3 ms·
> C and C++ also have a runtime What do you mean by "runtime?" libc just makes it so you're not writing your own system calls. Things like attaching a profiler
by dehrmann 7y ago
> C and C++ also have a runtime
What do you mean by "runtime?" libc just makes it so you're not writing your own system calls. Things like attaching a profiler post-hoc, hot-replacing code, optimizing code, remote debugging, etc. aren't really things in C-land.
- pjmlp 7y agoI mean startup code that runs before main(), code that runs registered atexit() functions at application exit, floating point emulation for ISO C float semantics regardless of hardware support, thread local storage, threading (as of C11). And keeping all of the above when targeting bare metal deployments as well. All of that falls into the language runtime from compiler design point of view.