∟JVM Assembler/Disassembler Tools

This chapter provides tutorial notes and example codes on JVM assembler and disassembler tools. Topics include downloading and installing Jasmin, JASM, AsmTools/JASM, Lilac; describing their assembly statements; providing their assembly program examples.

What Is JVM Assembler

What Is Jasmin

Compare HelloWorld.j with "javap" Output

Jasmin Assembly Statements

Jasmin Example - Empty.j

Jasmin Example - Calculator.j

What Is JASM

JASM Assembly Statements

JASM Example - Calculator.jasm

JASM Disassembler: "jasm -d"

What Is AsmTools

AsmTools/JASM Assembly Statements

AsmTools/JASM Example - Calculator.jasm

AsmTools/JASM Disassembler: "jdis"

AsmTools/JCOD Assembly File Format

AsmTools/JCOD Example - HelloWorld.jcod

AsmTools/JCOD Disassembler: "jdec"

What Is Lilac

Lilac Assembly Statements

Lilac Macro Example - HelloWorldMacro.jasm

Lilac Disassembler: "jdasm"

Takeaways:

Table of Contents

 About This Book

 JVM (Java Virtual Machine) Specification

 Java HotSpot VM - JVM by Oracle/Sun

 java.lang.Runtime Class - The JVM Instance

 java.lang.System Class - The Operating System

 ClassLoader Class - Class Loaders

 Class Class - Class Reflections

 JVM Runtime Data Areas

 JVM Stack, Frame and Stack Overflow

 Thread Testing Program and Result

 CPU Impact of Multi-Thread Applications

 I/O Impact of Multi-Thread Applications

 CDS (Class Data Sharing)

 Micro Benchmark Runner and JVM Options

 Micro Benchmark Tests on "int" Operations

 Micro Benchmark Tests on "long" Operations

 Micro Benchmark Tests in JIT Compilation Mode

 Micro Benchmark Tests on "float" and "double" Operations

 OpenJ9 by Eclipse Foundation

 JRockit JVM 28.2.7 by Oracle Corporation

 JVM Bytecode and Instruction Set

►JVM Assembler/Disassembler Tools

 Archived Tutorials

 References

 Index

 Full Version in PDF/EPUB