c - dynamic and stack memory allocation done by the compiler? -
i know there several types of memory allocation. taking c language example, have static allocation, stack allocation, heap allocation.
i understand static allocation done compiler, other 2 takes place on run time. responsible that, compiler, process or operating system?
i'm asking if compiler involved in running program?
os responsible stack , heap memory allocation.
the os allocate stack memory every thread , language runtime calls os allocate heap memory.
Comments
Post a Comment