-
公开(公告)号:US20250123823A1
公开(公告)日:2025-04-17
申请号:US18999308
申请日:2024-12-23
Applicant: Huawei Technologies Co., Ltd.
Inventor: Yongnian Le , Xiaoquan Huang , Jie Peng , Qian Zhang
IPC: G06F8/41
Abstract: A data processing method, performed by a processor, includes obtaining executable code generated by compiling source code. The executable code includes code corresponding to an extension instruction, where the extension instruction indicates that target data needs to reside in a cache, and the target data is data to be invoked for a plurality of times in a process of executing the executable code. The method further includes executing the executable code, obtaining the target data, and storing the target data in the cache. The executable code obtained by the processor directly carries the extension instruction, and the processor executes the code corresponding to the extension instruction, so that the target data may reside in the cache.
-
公开(公告)号:US20240168738A1
公开(公告)日:2024-05-23
申请号:US18427128
申请日:2024-01-30
Applicant: Huawei Technologies Co., Ltd.
Inventor: Xiaoquan Huang , Mingze Ma , Yongnian Le
CPC classification number: G06F8/4442 , G06F8/51
Abstract: A compilation optimization method for program source code includes: running a first executable file, and collecting a hardware cache event, where the first executable file includes an executable program and debugging information, the executable program is obtained by compiling program source code, and the debugging information includes a correspondence between the program source code and an executable instruction in the executable program; then, obtaining first configuration information based on the hardware cache event and the debugging information, where the first configuration information includes an identifier of the program source code and a quantity of cache misses corresponding to the identifier; and finally, compiling the program source code based on the first configuration information to obtain a second executable file.
-