tags:

views:

85

answers:

2

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

+1  A: 

This discussion is not a real tutorial, but contains a lot of information to get you going.

Sven Marnach
+5  A: 

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