Related articles |
---|
Implementation of "class inheritance" in a compiler dev@gioelebarabucci.com (Gioele Barabucci) (2004-09-08) |
Re: Implementation of "class inheritance" in a compiler pohjalai@cc.helsinki.fi (A Pietu Pohjalainen) (2004-09-13) |
Re: Implementation of "class inheritance" in a compiler arnold@skeeve.com (2004-09-13) |
Re: Implementation of "class inheritance" in a compiler tzvetanmi@yahoo.com (2004-09-13) |
Re: Implementation of "class inheritance" in a compiler dev@gioelebarabucci.com (Gioele Barabucci) (2004-09-24) |
Re: Implementation of "class inheritance" in a compiler hannah@schlund.de (2004-10-02) |
Re: Implementation of "class inheritance" in a compiler arnold@skeeve.com (2004-10-04) |
From: | tzvetanmi@yahoo.com (Tzvetan Mikov) |
Newsgroups: | comp.compilers |
Date: | 13 Sep 2004 12:33:11 -0400 |
Organization: | http://groups.google.com |
References: | 04-09-072 |
Keywords: | OOP, design, comment |
Posted-Date: | 13 Sep 2004 12:33:11 EDT |
Gioele Barabucci <dev@gioelebarabucci.com> wrote in message news:04-09-072...
> Hi,
>
> may you suggest me some readings (web, books, magazines) that examplain how
> compilers can implement classes (memory layout...), templates and
> inheritance in compiled languages like C++ or Java? There are many
> tradeoffs between memory occupation, compile-time performance and runtime
> performace; I'd like to know how the various researchers solved these
> problems.
>
> Usually the standards don't mandate a precise implementation, so compilers'
> writers must have deal with these problems. Are there papers or books that
> on this topics that reports their attempts?
At least in C++ there is not much choice in implementing classes and
inheritance. I would suggest examining the output of a C++ compiler -
it is pretty straight forward.
As for Java, the JVM specification should give you a pretty good idea
of the possibilities. There a more choices there, so you could look at
existing open source implementations like SableVM (www.sablevm.org) or
my personal favorite JCVM (http://jcvm.sourceforge.net/).
HTH,
Tzvetan
[I gather that the C++ committee has considered standardizing the form
of dispatch tables and class structures since they're all nearly the
same anyway. -John]
Return to the
comp.compilers page.
Search the
comp.compilers archives again.