Generate Bytecode from an AST

Daisy Nkweteyim nkweteyimdaisy at gmail.com
Sun Jun 22 04:53:26 UTC 2014


Heelo everyone,

I saw a blog post on Generating Byte Code by Building AST's
<https://blogs.oracle.com/yj/entry/yet_another_way_to_hack> which describes
how bytecode can be generated from an AST.  It involves changing the javac
source code to  bypass the parsing phase and generate bytecode which is
produced when one passes his/her own AST.  But I would ike to do this in a
better way.

Is it possible to actually generate a .class file from an AST using javac
without changing the javac source code and without using a framework?

Thanks for your time.  Any help is greatly appreciated.

Regards,

-- 

*Daisy Nkweteyim Cameroon*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20140622/dfd9f9aa/attachment.html>


More information about the compiler-dev mailing list