E&S CVS Commit: RuleDispatch - Added jumps, labels,
and backpatching forward references, all of which
pje at eby-sarna.com
pje at eby-sarna.com
Thu Dec 22 00:26:07 EST 2005
Author: pje
Date: Thu Dec 22 00:26:05 2005
New Revision: 2112
URL: http://svn.eby-sarna.com?rev=2112&view=rev
Log:
Added jumps, labels, and backpatching forward references, all of which
turned out to be easier to do than I expected, as long as we assume
the total code size is <64K. At this point, the assembler probably has
everything it will need for doing generic function stuff, so I probably
won't bother with any special support for loops or try: blocks, or for
that matter nested scopes. At some point, the <64K limit for jump
handling may need to be fixed, though, if we ever generate big enough
generic functions. (Which assumes I ever manage to generate something
useful with this module in the first place, which is not a given at
this point.)
Modified:
RuleDispatch/src/dispatch/assembler.py
RuleDispatch/src/dispatch/assembler.txt
More information about the source-changes
mailing list