Bytecode Generation questions

Gabriele Farina *DarkBard* <darkbard@extending-php.net>
15 Jun 2004 01:03:18 -0400

          From comp.compilers

Related articles
Bytecode Generation questions darkbard@extending-php.net (Gabriele Farina *DarkBard*) (2004-06-15)
| List of all articles for this month |

From: Gabriele Farina *DarkBard* <darkbard@extending-php.net>
Newsgroups: comp.compilers
Date: 15 Jun 2004 01:03:18 -0400
Organization: TIN
Keywords: interpreter, OOP, question
Posted-Date: 15 Jun 2004 01:03:18 EDT

Hi,


I've some question on Intermediate Code Generation for an OO language:


1) How can I compile correctly class definitions?? I have to make the
language able to define classes at runtime, or I have to precompile all
the class definition in a "table" and then access them directly when needed?


2) I planned to manage anonymous functions and classes: at runtime I
keep in memory 2 tables containing definitions of both functions and
classes, and then, during assignment statments, I link them whit the
right names in the symble table. I don't know if I explain my ideas
well, but do you think I could be a working way for handlig functions
and classes?


thats all, I think


Bye


Post a followup to this message

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