首页 > 代码库 > Translating Conditional Branches

Translating Conditional Branches

By using a PC-relative encoding of the jump targets,the instructions can be compactly encoded(requiring just 2 bytes),and the object code can be shifted to different positions in memory without alteration.

The most general way to translate conditional expressions and statements from C into machine code is to use combinations of conditional and  unconditional jumps.

Translating Conditional Branches