Re: object oriented compiler/interpreter - HOWTO

greldinard@my-deja.com
23 Jul 2000 17:00:23 -0400

          From comp.compilers

Related articles
object oriented compiler/interpreter - HOWTO bretr_a@--nospam--one.net.au (Brett) (2000-07-18)
Re: object oriented compiler/interpreter - HOWTO ast@halcyon.com (Andrew Tucker) (2000-07-23)
Re: object oriented compiler/interpreter - HOWTO neelk@brick.cswv.com (2000-07-23)
Re: object oriented compiler/interpreter - HOWTO ralph@inputplus.demon.co.uk (2000-07-23)
Re: object oriented compiler/interpreter - HOWTO jkahrs@castor.atlas.de (Juergen Kahrs) (2000-07-23)
Re: object oriented compiler/interpreter - HOWTO greldinard@my-deja.com (2000-07-23)
Re: object oriented compiler/interpreter - HOWTO rpw3@rigden.engr.sgi.com (2000-07-27)
Re: object oriented compiler/interpreter - HOWTO bernd@informatik.uni-osnabrueck.de (2000-07-27)
Re: object oriented compiler/interpreter - HOWTO felix@anu.ie (felix) (2000-07-29)
| List of all articles for this month |
From: greldinard@my-deja.com
Newsgroups: comp.compilers
Date: 23 Jul 2000 17:00:23 -0400
Organization: Deja.com - Before you buy.
References: 00-07-023
Keywords: OOP, design

    "Brett" <bretr_a@--nospam--one.net.au> wrote:
> Can Anyone Point Me In Right Direction For Writing My Own OO
> Compiler/Interpreter?


Hi Brett,


I can't point you to literature ... don't have any available myself,
but I'm currently involved in the OO-Language compiler/interpreter
topic as well ... after two experimental implementations of Lisp-like
functional languages I'm now about to go for a small OO-language.


Maybe you should at first clearify, what exactly you want: it's
possible to implement most of the OO-properties of your language
compile-side, as C++ does - in this case you'll have to do a lot of
work in the compiler, or implement OO in a runtime system, as
SmallTalk does, and Java as well. The latter imho leads to more
consistent OO-approaches, and my research until now led me to the
conclusion that it's possible to implement very small, tiny & elegant
VMs just using a minimalistic instruction set providing attribute
access, method invocation, resolution of class hierarchies by some
kind of 'superclass' operation, local variable access, some
conditional and unconditional branch operations and not much more,
leaving most of the work to be done to a supportive class library.


Anyway, a more precise idea of what exactly you want will probably
help you to find appropriate information.


Btw., I enjoy the challenge to reinvent the wheel here, and do my
research without reading too much about ideas others had. I'll
complete my design and prototype implementation instead and will then
compare this solution to other ones.


I know, this is not a 'professional' approach, but at least when
working on self-choosen non-customer projects, I like to go for
maximal fun instead of maximal working efficiency; this also led to
best learning success for me, because I really *think* about it, not
only try to understand what others thought ... So I'm couraged enough
to recommend my approach to you - believe me, it's fun, and it's much
more satisfying ;)


Best Regards & Success,


- greldinard


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.