GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 01-Jul-2009, 09:33
hypernova hypernova is offline
New Member
 
Join Date: Oct 2008
Posts: 2
hypernova is on a distinguished road

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 " which seems to hold these answers, but i cant find the book anywhere in my city to get it and see if its really worth it (and there's no preview on internet). So please tell me if its a good book for this purpose, so i can order it online.
  #2  
Old 02-Jul-2009, 02:09
nowocien nowocien is offline
Awaiting Email Confirmation
 
Join Date: Nov 2008
Posts: 30
nowocien is an unknown quantity at this point

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


C++ programming by Even Weaver, not sure where you are but this book might be hard to find, the best for begginers are books from your local community college book store!!

nowocien
  #3  
Old 02-Jul-2009, 23:21
ocicat ocicat is offline
Regular Member
 
Join Date: May 2008
Posts: 580
ocicat is a jewel in the roughocicat is a jewel in the rough

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


Quote:
Originally Posted by hypernova
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)
It does not appear that you understand the difference between initialization & assignment.
  • An object can have its value changed any number of times through assignment.
  • An object can have its value intialized only once when the object is created.
As for a text describing these concepts, I would recommend Stroustrup's Programming: Principles & Practice using C++:

http://www.amazon.com/Programming-Pr...6594096&sr=8-1
Quote:
Holes in structures, and structures and pointers.
Same book.
Quote:
Deep concepts in pointers, objects, classes.....i mean relation between pointers and OOP.
Ditto.
Quote:
near, far, Huge pointers.
Google. ie.

http://wiki.answers.com/Q/What_is_th...mming_language
Quote:
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.
You may not find such a text. Most good compiler textbooks get deep into the details. Such a text is the following:

http://www.amazon.com/Compilers-Prin...6594454&sr=1-1
Quote:
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.
The C++ Programming Language is perhaps the best text available.

The problem is that you are wanting it two (contradictory) ways -- a text which is thorough but not too deep. By definition, anything that is not too deep will not be thorough. Part of becoming a good & productive programmer is delving into the details to find your own answers. Yes, it takes time & sometimes time that we don't have, but sometimes the answer is not clear until we have an overview of the entire landscape -- a broad understanding which doesn't come until sufficient time has been spent contemplating the full picture.
 
 

Recent GIDBlogProgramming ebook direct download available by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 03:22.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.