Method and device for managing register
By acquiring processor-recognizable instruction information, the register resource management of both short-lived and long-lived instructions is optimized, solving the problem of register resource waste, improving processor resource utilization efficiency, and reducing power consumption.
Patent Information
- Application Number
- CN202411189791.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2026-03-06
AI Technical Summary
In existing technologies, processors have limited register resources. Increasing the number of registers will lead to increased cost and power consumption. Furthermore, due to differences in the understanding of register lifecycle between software and hardware, register resources are wasted. Existing methods are only applicable to instructions with short lifecycles, limiting their application scenarios.
By acquiring the first indication information that the processor can recognize, the lifetime of the registers associated with instruction sets with shorter lifetimes is indicated, and the register resource management of instructions with longer lifetimes is optimized. This includes releasing registers when the instruction at the end of the instruction set is completed, and flexibly inserting information into the instruction set through end or start instruction identifiers and metadata to finely manage registers.
It improves the efficiency of register resource utilization, optimizes register resource management for both short-lived and long-lived instructions, and reduces the number of register releases and power consumption.