首页>
外国专利>
INSTRUCTION GENERATION METHOD AND APPARATUS, INSTRUCTION EXECUTION METHOD, PROCESSOR, ELECTRONIC DEVICE, AND STORAGE MEDIUM
INSTRUCTION GENERATION METHOD AND APPARATUS, INSTRUCTION EXECUTION METHOD, PROCESSOR, ELECTRONIC DEVICE, AND STORAGE MEDIUM
展开▼
机译:指令生成方法和装置,指令执行方法,处理器,电子设备和存储介质
展开▼
页面导航
摘要
著录项
相似文献
摘要
An instruction generation method and apparatus, an instruction execution method, a processor, an electronic device, and a storage medium. Said method comprises: determining that an instruction execution unit supports data forwarding (S101); when instructions are generated, setting, in an ith instruction, a first identifier configured to instruct to write destination data of the ith instruction into a forwarding path, and setting, in an (i+j)th instruction, a second identifier configured to instruct to acquire a source operand from the forwarding path (S102); and sending the ith instruction and the (i+j)th instruction to the instruction execution unit, so that when executing the instructions, the instruction execution unit writes the result of the ith instruction into the forwarding path according to the first identifier, and acquires the required source operand from the forwarding path according to the second identifier (S103). By means of setting, in the instructions, a first identifier configured to instruct to write the destination data into the forwarding path and a second identifier configured to indicate that a source operand is derived from the forwarding path, explicit data forwarding of hardware is realized forcibly by means of software, and the number of times of access of a memory is reduced.
展开▼