3

I'm looking for a tutorial describing about the various memory segments of a C program like code segment, data segment etc and what type of information is stored into them (i.e. where global, static, automatic etc variables are stored and why?).

--Ravi

Ravi Gupta
  • 6,258
  • 17
  • 56
  • 79

1 Answers1

4

Try reading this: Linkers & Loaders. This is the online copy of a wonderful book by John Levine, which delves into these things.

You will also benefit by reading more about ELF format. Wikipedia has links to more articles about the same.

Sudhanshu
  • 2,691
  • 1
  • 18
  • 25