vtable and such like

G

GrahamJWalsh

Hi,

I'm looking for an overview document that outlines how c++ structures
things internally from a dynamic/polymorphism perspective. i.e. how it
knows what virtual functions are called upon invocation, how it
successfully casts using dynamic_cast. It's bascially a request to get
an inside track on how (typically) the C++ runtime knows what to
lookup/do when it comes to dealing with the dynamic type of objects.
How the info is laid out internally etc. etc.

If theres some sort of high level overview out there I'd be grateful. I
don't need specifics on any compiler but rather a general over of how
its "typically" done.

thanks for any info.

G
 
V

Victor Bazarov

I'm looking for an overview document that outlines how c++ structures
things internally from a dynamic/polymorphism perspective. i.e. how it
knows what virtual functions are called upon invocation, how it
successfully casts using dynamic_cast. It's bascially a request to get
an inside track on how (typically) the C++ runtime knows what to
lookup/do when it comes to dealing with the dynamic type of objects.
How the info is laid out internally etc. etc.

If theres some sort of high level overview out there I'd be grateful. I
don't need specifics on any compiler but rather a general over of how
its "typically" done.

Look for "Inside the C++ Object Model" book by Stanley Lippman.

V
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top