-
Do I really need the C runtime? part 2
In the last post we got a c program to boot, run, then segmentation fault without the C runtime. In this post The following issues are addressed Fixing the segmentation fault This issue really is that extreme. In the previous post there was a small error. In the puts function it does not return. So…
-
Do I really need the C runtime? part 1
In C before main tasks to setup the runtime environment needs to run. In C and C++ Crt objects do the setup and tare down of the runtime environment. Crt stands for “C(++) RunTime”. These setup tasks are initializing the stack, IRQ (interrupt requests), registers, memory segments, passes argc/argv to main. C/C++ compilers automatically link…