一种基于位向量与可配置映射的寄存器选择方法
By using a bit vector and configurable mapping register selection method, the problems of low efficiency, high cost and insufficient scalability in existing register selection technologies are solved, realizing efficient and flexible register selection and highly adaptable compiler register allocation.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- 成都融见软件科技有限公司
- Filing Date
- 2026-04-27
- Publication Date
- 2026-07-17
AI Technical Summary
In existing compilers, register allocation relies on a fixed order, which cannot be flexibly adjusted. Register category filtering is inefficient, register availability determination is costly, and scalability is insufficient, making it difficult to adapt to various target architectures and user preferences.
It adopts a register selection method based on bit vectors and configurable mapping. By performing bitwise operations on availability bit vectors and category masks, it quickly filters free registers that meet the target constraints. It achieves efficient selection by using bitwise detection of the first position and supports flexible register priority configuration and scalability.
It significantly improves register selection efficiency, reduces decision-making costs, and enables flexible register selection and good scalability, adapting to different platforms and architectures.
Smart Images

Figure CN122111509B_ABST