-
公开(公告)号:US20240419443A1
公开(公告)日:2024-12-19
申请号:US18741186
申请日:2024-06-12
Applicant: HUAWEI TECHNOLOGIES CO., LTD.
Inventor: Ruoyu ZHOU , Wenbo SUN , Jianjiang ZENG , Guozhu LI , Xiping ZHOU , Heng LIAO
IPC: G06F9/26
Abstract: Embodiments of this application provide example computing chips and instruction processing method related to the field of integrated circuit technologies. One example computing chip uses a superscalar processor architecture, and includes an instruction processing unit and a plurality of registers that are separately coupled to the instruction processing unit. The plurality of registers include a general purpose register and a plurality of private registers that are separately coupled to the general purpose register. The general purpose register is configured to store an execution result of a microinstruction that is in a plurality of microinstructions of a computing task and that is executed before a jump instruction and whose execution result is referenced by a microinstruction that is executed after the jump instruction. Each private register in the plurality of private registers is configured to store an execution result of any microinstruction in the plurality of microinstructions.
-
公开(公告)号:US20250013468A1
公开(公告)日:2025-01-09
申请号:US18898309
申请日:2024-09-26
Applicant: HUAWEI TECHNOLOGIES CO., LTD.
Inventor: Xianzhe LIU , Jianjiang ZENG , Yandong LV
Abstract: Embodiments of this application disclose an instruction translation method. The method includes: obtaining a return instruction of a function call instruction; obtaining a first address mapping result based on a second address indicated in the return instruction; storing the first address mapping result in a running stack space; and obtaining a first translation result of the return instruction, where the first translation result is a binary translation result of the return instruction, and the second translation result indicates to obtain, from a target location, an instruction indicated by the first address mapping result and execute the instruction. In this application, a running stack space of a source program is reused, thereby saving a storage space. In addition, an address of a return instruction does not need to be checked each time the return instruction is translated, thereby reducing overheads during translation and increasing program running efficiency.
-