I'm working on a personal project just for fun, a new programming languages (just because there are not enough). I m going to make it run on JVM but I need to store some metadata in the compiled file. So I have two alternatives, create two separated file(one with metadata and one with bytecode), or put metadata and bytecode in the same file. I would like to choose the second one, my only problem is how do I tell the jvm how to extract the bytecode from the compiled file? I thought to create a specific version of an already existent jvm changing the source code but maybe there is a easier way.
Thank you in advance
EDIT
The metadata I need to store are useful only during compilation and not during runtime