Fork me on GitHub
#jvm
<
2021-09-16
>
Joshua Suskalo15:09:00

Anyone have recommendations for introductory content on jvm bytecode?

alexmiller16:09:33

there is not a lot out there. there are some very old books. I have the one by Downing and Meyer from 1997 (!!) and still find it to be a useful reference

alexmiller16:09:30

obviously stuff has been added since then, but surprisingly little

alexmiller16:09:26

and the jvm spec is pretty good of course

Ben Sless16:09:27

Agreed. The spec is pretty readable

Ben Sless16:09:18

Looking at some bytecode manipulation library can also be helpful

alexmiller16:09:36

yeah, something like asm docs may be just as useful

Joshua Suskalo16:09:52

Alright. I have some friends that have suggested a couple articles, but the jvm spec chapter 2 is the main place people are pointing me to.

Joshua Suskalo16:09:30

And asm docs would be good. The library I'm looking at using for my needs for it is insn, which wraps asm

alexmiller16:09:43

probably the best way to learn is to use javap to dump some bytecode then walk through it line by line with reference materials and write a translation

Joshua Suskalo16:09:28

Yeah, no.disassemble I've also heard is good

alexmiller16:09:13

sure, same thing