linux - Who arranges/creates the different segments(stack,heap,code segment, data segment) of a program -
while going through diiferent segments of program, have still doubt creates segments. understanding assembler creates different segments while creating assembly code , when loading virtual memory loader creates virtual address space segments , stores them in virtual memory.
please me in understanding it.
yes, assembler generates individual segments, specify them in code using labels, instance .data directive tells assembler we've reached data segment.