At 5:07 PM -0300 8/6/03, Daniel Grunblatt wrote:
On Monday 04 August 2003 14:03, Dan Sugalski wrote:
 Here's some stuff we need to add to the packfile format and the sub
 header to get things ready for more language work.

 Packfiles need to have a symbol table. A series of name/type/location
 tuples so we can have global names that map to values in the
 bytecode, either variables or subroutines. When the bytecode is
 loaded, we need to put those symbols in the symbol table and
 construct the backing PMCs.


Guess what you really want is a symbol table (with name/type) and a rellocation table (symbol number/location), to avoid having the name repeated, right?

Yup. I don't think a whole lot will end up using the relocation table, but no sense in having two separate ones, since that just means more possibility for things to get out of sync.
--
Dan


--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to