4

Please suggest some website or some book that deals with these topics in really good detail.

I need to have a better understanding of these concepts (in reference to C++):

  1. stack and heaps
  2. symbol tables
  3. implementation of scope rules
  4. implementation of function calls
Lazer
  • 90,700
  • 113
  • 281
  • 364

3 Answers3

2

You could read the Dragon Book, but I guess it might be too much.

Kornel Kisielewicz
  • 55,802
  • 15
  • 111
  • 149
2

For calling functions, this Wikipedia page is great: x86 calling conventions - it explains the various ways to translate function calls to assembly.

Also, this Wikibook on x86 Disassembly, has some interesting pages on this topic:

Eli Bendersky
  • 263,248
  • 89
  • 350
  • 412
1

Try online version of the "Linkers &Loaders" book. Chapter 11 may help you with these concepts w.r.t C++. A very good book to get your fundamentals right. Try Gustavo's excellent blog to understand concepts of memory management (stack, heap and a lot more).

Sudhanshu
  • 2,691
  • 1
  • 18
  • 25
  • Gustavo's blog is the most excellent piece of technical explanation I've seen to date. Esp. when it's in an area that is full of jargon. Clarity, simplicity and detail with superb pictures. Simply amazing. Note: The Dragon book is not the best place to grasp these concepts, even for intermediate programmers. – GuruM Jan 15 '13 at 14:17