Java Byte Code Visualizer
Asked Answered
N

3

6

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?

Nell answered 8/9, 2009 at 0:40 Comment(0)
J
8

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

Jointworm answered 8/9, 2009 at 0:47 Comment(2)
Anything available for NetBeans on similar lines?Nell
jclasslib can be installed as a NetBeans module (resources.ej-technologies.com/jclasslib/doc/help.html) but I've never tried it.Jointworm
H
7

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.

Headgear answered 8/9, 2009 at 1:26 Comment(0)
D
0

You can try the Dr. Garbage Tools or install from Eclipse Market Place

Some screenshots:

enter image description here

enter image description here

enter image description here

Dorcas answered 10/4, 2019 at 14:6 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.