Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java Byte Code Visualizer

What could help me in helping writing highly compact(least byte code count) programs in Java.
Possibly I'm looking at:

  • A tool that tells me how many byte codes a Class or a method generates.
  • To visualize byte codes.
  • The tool could tell me which areas need optimization in terms of byte code count or cpu cycles.
  • A byte code chart would also help indicating what byte codes exist in Java and its various properties.

Any existing tools that would help me to realize this?

like image 775
Kevin Boyd Avatar asked Sep 08 '09 00:09

Kevin Boyd


2 Answers

Eclipse has a Byte Code Outline plug-in that shows you what Java byte code will be produced from your source code.

like image 152
Bill the Lizard Avatar answered Sep 28 '22 18:09

Bill the Lizard


The javap program that comes with the JDK can disassemble Java classes into bytecode.

You will want to refer to the Java Virtual Machine Specification to understand the meaning of all the bytecodes.

like image 26
Greg Hewgill Avatar answered Sep 28 '22 17:09

Greg Hewgill