when we talk about memory layout of a cprogram ....is it hapning in compile step or link or when we writ a c program immediatly?
another point :text segment is it a-out?
as i understood the text segment is machine instruction it's often read only to prevent a program from accidentally modifying its instructions.
so it's like a contant in memory,is'nt it?
and preporessore directive(such as #include stdin.h or #define ..) where is it in memory layout? i mean where is its position or section in memory ?