Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java decompiler vs java disassembler [closed]

Tags:

java

I am preparing core java and i got following doubt

javap is dis-assembler or de-compiler? what is the difference between them? which java CLI commands are used ?

like image 653
user3781572 Avatar asked Feb 12 '23 13:02

user3781572


1 Answers

Javap is just an "informal" dis-assembler, its output gives you information about the bytecode, but is not suitable for it to be used by an "assembler", it is rather for it to be read by a human.

The traditional difference (from the C language world):

  • Compiler: compiles a relatively high-level source code to assembly language
  • Assembler: compiles assembly code to machine code

take your conclusions for "de-compiler" and "dis-assembler"

Sometimes a software that does both steps (disassemble and decompile) is also called a decompiler, but it still depends on the context

like image 68
morgano Avatar answered Feb 15 '23 02:02

morgano