Instruction translation method and related equipment thereof
The embodiment of the invention discloses an instruction translation method. The method comprises the steps of obtaining a return instruction of a function call instruction; obtaining a first address mapping result according to a second address indicated in the return instruction, and storing the fi...
Saved in:
Main Authors | , , |
---|---|
Format | Patent |
Language | Chinese English |
Published |
24.10.2023
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | The embodiment of the invention discloses an instruction translation method. The method comprises the steps of obtaining a return instruction of a function call instruction; obtaining a first address mapping result according to a second address indicated in the return instruction, and storing the first address mapping result to the operation stack space; a second translation result of the return instruction is obtained, the second translation result is a binary translation result of the return instruction, and the second translation result indicates that the instruction indicated by the first address mapping result is obtained from the target position and executed. According to the method and the device, the running stack space of the source program is reused, the storage space is saved, the address of the return instruction does not need to be checked when the return instruction is translated every time, the overhead during translation is reduced, and the program running efficiency is improved.
本申请实施例公开了一种指令 |
---|---|
Bibliography: | Application Number: CN202210346585 |