[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Support for Meta-Programming
Hey,
some month ago I promissed to build in support for Meta-Programming (aka
module Ref). Some weeks ago I had had a look at the code and encountered a
problem:
Module Ref -- which implements important parts of Meta-Programming -- scans a
structure like this:
var "a" 0
var "b" 4
record "r" 8 MyFunnyRecordType
Such a data area (byte stream) exists for every procedure (and module).
Column three denotes the offset into the procedure frame (global vars for
module).
And this offset is the problem: I don't know any way to get this in C. Esp.
since oo2c would not onfly have to know the size (sizeof), but also the
alignment of the variables.
Any suggestions?
+++hartmut