Generate Bytecode from an AST

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

Heelo everyone,

I saw a blog post on Generating Byte Code by Building AST's
<> 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.



*Daisy Nkweteyim Cameroon*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the compiler-dev mailing list