954,492 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

A good book on pointers,memory and some inner workings of compilers for C++

I am searching for a book(s) which explains things like the following -

1. Difference between memory allocation of local and global (or other static variables)....? (or why i cant initialize a global variable more than once outside main and all other functions)

2. Holes in structures, and structures and pointers.

3. Deep concepts in pointers, objects, classes.....i mean relation between pointers and OOP.

4. near, far, Huge pointers.

5. Some insight into how the compiler does something....I dont want to know the exact details of compiler working, but there are some concepts I feel can be better understood if i know how compiler does it.

I have already tried Pointers In C by Yashwant Kanetkar and didnt find it very useful.
I am finding that the C++ Programming Language by Bjarne Stroussoup answers some of these questions, but i want a bit more detail, and a dedicated book for this.

I found that a book named "C++ Pointers and Dynamic memory management by Michael C. Daconta " holds these answers, but i cant find the book anywhere in my city to get it and see if its really worth it. So please tell me if its a good book for this purpose, so i can order it online.

hypernova
Newbie Poster
19 posts since Apr 2009
Reputation Points: 10
Solved Threads: 1
 

1. Difference between memory allocation of local and global (or other static variables)....? (or why i cant initialize a global variable more than once outside main and all other functions)

2. Holes in structures, and structures and pointers.

3. Deep concepts in pointers, objects, classes.....i mean relation between pointers and OOP.

A good book .
A very good book .
Has a few gems on what you want .
Cheap enough to get even if it's bad .

4. near, far, Huge pointers.

Memory segmentation is why those were born. Wikipedia is pretty good about explaining how each one works.

5. Some insight into how the compiler does something....


Every compiler is different, but you can't got wrong learning how compilers work in general .

Tom Gunn
Master Poster
733 posts since Jun 2009
Reputation Points: 1,446
Solved Threads: 135
 

Haven't read it yet,
but free book by Bruce Eckel.
Just google out "Thinking in C++"
BTW I have enjoyed Deitel's C++ book

evstevemd
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 462
Solved Threads: 392
 

You would also like " THE C++ PROGRAMMING LANGUAGE " by
Bjarne Stroustrup.
Edit: There are different editions of the book. Prefer the latest one, I believe its the third.

Sky Diploma
Practically a Posting Shark
865 posts since Mar 2008
Reputation Points: 673
Solved Threads: 131
 

@tom Gunn

hey, thanks for the suggestions, but are u sure that the book - "C++ Pointers and Dynamic memory management by Michael C.Daconta" is a bad book ?? I've been looking frantically for it everywhere because the index and reviews of the book seemed luring, but havent found any preview or the book itself yet, so i surely dont know how the book is.
Please confirm if the book is not worth having, and doesnt answer the questions above, and it will be a huge help to me (a lot of relief too)......
Thanks again.

hypernova
Newbie Poster
19 posts since Apr 2009
Reputation Points: 10
Solved Threads: 1
 
but are u sure that the book - "C++ Pointers and Dynamic memory management by Michael C.Daconta" is a bad book ??


I haven't read it or heard anything about it. What I meant was that it is cheap on amazon, so if it turns out to be a bad book, you don't lose much by ordering it online.

Tom Gunn
Master Poster
733 posts since Jun 2009
Reputation Points: 1,446
Solved Threads: 135
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You