-
Book Overview & Buying
-
Table Of Contents
Ghidra Software Reverse-Engineering for Beginners - Second Edition
By :
On the other hand, P-Code is an intermediate representation (IR) that can be translated into the assembly instructions of a specific processor. To be more precise, it is a register transfer language (RTL). P-Code is used to describe data flow at the register-transfer level of an architecture.
P-Code is useful because it can be translated into a large set of different assembly languages. In practice, if you develop a tool for P-Code, you automatically support a lot of architectures. Furthermore, P-Code offers more granularity than assembly language (one assembly instruction is translated into one or more P-Code instructions) so you can control side effects better. This property is very useful when developing some kinds of tools.