Constant data processing method, electronic device and medium based on inline constant table
By generating an inline constant table at the compiler stage and setting an index in the chip, the constant data in the inline constant table can be directly accessed, which solves the problems of low constant data access efficiency and poor programmability in the existing technology and realizes efficient and flexible constant data access.
Patent Information
- Application Number
- CN202511007411.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-22
- Publication Date
- 2025-09-26
- Estimated Expiration
- 2045-07-22
AI Technical Summary
The access method of constant data in the existing technology cannot take into account both flexibility and efficiency at the same time, resulting in low constant data access efficiency and poor programmability.
During the compiler compilation phase, an inline constant table is generated and the correspondence between constant data and instructions is recorded in the inline constant table information. The inline constant table is set in the chip through the inline constant table index, and the constant data in the inline constant table is directly accessed during the program execution phase.
It improves the efficiency and programmability of constant data access, reduces the number of instructions, reduces access latency, and improves pipeline utilization.