Memory Layout of a Object

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mailursubbu@gmail.com

    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

  • Victor Bazarov

    #2
    Re: Memory Layout of a Object

    mailursubbu@gma il.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


    Comment

    • mlimber

      #3
      Re: Memory Layout of a Object

      mailursubbu@gma il.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

      Comment

      • Marcus Kwok

        #4
        Re: Memory Layout of a Object

        mailursubbu@gma il.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.



        --
        Marcus Kwok
        Replace 'invalid' with 'net' to reply

        Comment

        Working...