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...

Full description

Saved in:
Bibliographic Details
Main Authors LIU XIANZHE, ZENG JIANJIANG, LYU YANDONG
Format Patent
LanguageChinese
English
Published 24.10.2023
Subjects
Online AccessGet full text

Cover

Loading…
More Information
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