This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
CodeFragment -- is it useable?
- To: kawa at sources dot redhat dot com
- Subject: CodeFragment -- is it useable?
- From: Lars Clausen <lrclause at cs dot uiuc dot edu>
- Date: 27 Sep 2001 12:58:02 -0500
Hi!
We're about to use the gnu.bytecode package[1] as a compiler backend. A
major part of our project is passing pieces of code around as values in a
meta-language. I notice there is a CodeFragment class that seems useable
for that. It doesn't seem to allow jumps out of the fragment, though (this
would be what you mean by 'no non-relative jumps'?) -- are there any major
blocks for implementing that? Obviously, the jumps will have to be
adjusted when the fragments are assembled, but are there some underlying
designs that come in the way of this?
Thanks,
-Lars
[1] Yes, I know about the gnu.expr package, but it doesn't really serve our
needs.
--
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause)| Hårdgrim of Numenor
"I do not agree with a word that you say, but I |----------------------------
will defend to the death your right to say it." | Where are we going, and
--Evelyn Beatrice Hall paraphrasing Voltaire | what's with the handbasket?