Program memory segments in C

I am looking for a tutorial that describes the various memory segments of a C program, such as a code segment, a data segment, etc., and what type of information is stored in them (i.e. where global, static, automatic, etc. are stored variables and why?).

- Ravi

+3
source share
2 answers

Try reading this: Linkers and Loaders . This is an online copy of John Levin’s wonderful book that delves into these things.

You will also find it helpful to learn more about the ELF format . Wikipedia contains links to other articles about the same.

+4
source

, .

+1

Source: https://habr.com/ru/post/1772252/


All Articles