-
公开(公告)号: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.