[Subversion] / RuleDispatch / src / dispatch / assembler.txt |
No default branch
Bookmark a link to HEAD:
(view)
(download)
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.)
Preliminary draft of an "assembler" for Python bytecode, to be used in later code generation of generic functions. The only features missing at this point are jumps, block management, and nested scope support. Docs are also sketchy as yet, but I wanted to get a snapshot into source control before I stop work on it for now. See assembler.txt for examples of what's implemented so far.
cvs-admin@eby-sarna.com Powered by ViewCVS 1.0-dev |
ViewCVS and CVS Help |