473,436 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,436 software developers and data experts.

Memory Layout of a Object

Hi,

Can you please refer me the book (or link) which I should refer to for
memory layout of a object in c++. How the virtual table is used and
other such details i am interested to know.
If some one has writen article or paper on internals of c++ it will be
of great use for me.

Best Regards,
Subra

Jul 20 '06 #1
3 7483
ma*********@gmail.com wrote:
Can you please refer me the book (or link) which I should refer to for
memory layout of a object in c++. How the virtual table is used and
other such details i am interested to know.
If some one has writen article or paper on internals of c++ it will be
of great use for me.
Stanley Lippman, "Inside the C++ Object Model"

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Jul 20 '06 #2
ma*********@gmail.com wrote:
Can you please refer me the book (or link) which I should refer to for
memory layout of a object in c++. How the virtual table is used and
other such details i am interested to know.
If some one has writen article or paper on internals of c++ it will be
of great use for me.
As the FAQ for this group describes at
http://www.parashift.com/c++-faq-lit....html#faq-20.4,
this sort of thing is mostly compiler-dependent, and the C++ Standard
leaves layout and such somewhat open so compiler writers can do the
best thing for their target platforms.

Cheers! --M

Jul 20 '06 #3
ma*********@gmail.com wrote:
Can you please refer me the book (or link) which I should refer to for
memory layout of a object in c++. How the virtual table is used and
other such details i am interested to know.
If some one has writen article or paper on internals of c++ it will be
of great use for me.
I have not personally read it but "Inside the C++ Object Model" by
Stanley Lippman is one that I have heard good things about.

http://www.amazon.com/gp/product/020...965237-0747837

--
Marcus Kwok
Replace 'invalid' with 'net' to reply
Jul 20 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: Rabbit63 | last post by:
Hi: I want to show a set of records in the database table on the clicnt browser. I have two ways to do this (writen in JScript): 1.The first way is: <% var sql = "select firstname from...
2
by: mosfets | last post by:
Hi, I'm having a little trouble figuring out the difference in terms of memory allocation between: class person_info; class A { private:
10
by: Steven T. Hatton | last post by:
I just read something interesting in one of the PDFs located here: http://www.cs.wustl.edu/~schmidt/C++/ Sorry, I don't recall which file it was, and I'm too lazy to dig it up again ;) It says...
6
by: lovecreatesbeauty | last post by:
Hello experts, 1. Does C guarantee the data layout of the memory allocated by malloc function on the heap. I mean, for example, if I allocate a array of 100 elements of structure, can I always...
7
by: toton | last post by:
Hi, I have a STL vector of of characters and the character class has a Boost array of points. The things are vector<Characterchars; and class Character{ private: array<Point,Npoints; }; Now...
11
by: Henryk | last post by:
I have something like class Params { public: const static char nOne = 1; const static int nTwo = 2; const static char nThree = 3; }; This is just a wrapper for globally used parameters in...
1
by: stasgrom | last post by:
Guys, I have this situation: the class C is defined as follow: class C: public A, public B {...}; Now when I create an object of class C, I can see that the compiler (VS 8.0) decides to layout...
6
by: \Frank\ | last post by:
On the Internet there are many descriptions of the memory layout for a DIB. But none that I can find for a Bitmap. Is that because a Bitmap's layout depends on a related device. If that's...
3
by: Peskov Dmitry | last post by:
Hi, What is the memory layout of an object, and the derived object. For example : class A { private: int prv_data; protected: int pro_data;
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.