Programmatic creation of class files and self modifying code
Keerthivasan Raghavan
mail2akash97 at gmail.com
Sun Dec 24 08:57:45 UTC 2023
Hi All,
I am a newbie to java. How do I programmatically create "*.class" files
using the compiler API? I do not want to parse "*.java" files , but
generate "*.class" files. This brings me to the next question of how to
execute dynamically generated byte code: just like JRE jas JIT I would like
to programmatically JIT java byte code and execute it. This is inline with
the concept of self modifying code:
https://en.wikipedia.org/wiki/Self-modifying_code
Any pointers/code-snippets to the compiler API that I can use would be
helpful.
Thank you,
Keerthivasan Raghavan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/compiler-dev/attachments/20231224/ae9efedf/attachment.htm>
More information about the compiler-dev
mailing list