All~

I am trying to find a reasonable path towards direct bytecode
generation.  My current setup has a hand rolled java dom that I then
serialize to java code which I compile using javac.  I have found that
I can replace my java dom with the jdt.core one and still do the
serialize/compile trick.  But, I would really like to be able to skip
the serialize step and go directly some AST to a .class file.

This approach is fairly nice in that it allows me to inspect the
generated code easily and find bugs that way.  Thus I would like to
maintain the ability to generate the java code, even if I only use it
for debugging.

I looked into jdt.core.dom which is the AST that eclipse uses when
refactoring code, but couldn't figure out a way to make it emit
bytecode.  Does anyone know of any such targetable ASTs?  Another
approach, how stable is the internal AST used by ECJ or javac?

Thanks,
Matt

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "JVM 
Languages" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jvm-languages?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to