I still can't quite grasp the concept of how the compiler stores automatic (local) variables before runtime.
I can understand that the compiler puts static variables in the data or bss segments. Auto variables on the other hand get placed on the stack, but not until runtime when a function is called. So where are they stored before the program executes?
My guess is that the compiler just needs to know the size of the local variables, as placeholders, but can we see this information in the object files?