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.

CN120523472BActive Publication Date: 2025-09-26METAX INTEGRATED CIRCUITS (SHANGHAI) CO LTD
2 Cites 0 Cited by

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

Technical Problem

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.

Method used

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.

Benefits of technology

It improves the efficiency and programmability of constant data access, reduces the number of instructions, reduces access latency, and improves pipeline utilization.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The present invention relates to the field of computer technology, and in particular to a constant data processing method, electronic device, and medium based on an inline constant table, comprising: S1, in a compiler compilation phase, obtaining constant data required for executing an instruction, recording the corresponding relationship between each constant data and the instruction in inline constant table information, and setting a corresponding inline constant table index for each constant data in the inline constant table information; S2, generating an instruction to be executed; S3, adding the inline constant table information to an inline constant table data segment of a binary file; S4, in a program initialization startup phase, setting an inline constant table in a chip through a preset hardware configuration interface; S5, in a program execution phase, the chip accesses the corresponding constant data in the inline constant table based on the inline constant table index in the instruction to be executed, and executes the instruction to be executed. The present invention improves the efficiency and programmability of constant data access.
Need to check novelty before this filing date? Find Prior Art