-
公开(公告)号:US20190266094A1
公开(公告)日:2019-08-29
申请号:US16405869
申请日:2019-05-07
Applicant: HUAWEI TECHNOLOGIES CO., LTD.
IPC: G06F12/0862
Abstract: Embodiments of this application disclose a data prefetching method and apparatus that are applied to a computer system, and the computer system includes a prefetch engine, a memory, and a compiler. The compiler performs the following operations in a compilation process: obtaining N functions and a first global variable of the N functions, where N is an integer greater than or equal to 1; and determining a start address of the N functions and a start address of the first global variable, then the prefetch engine can prefetch, into a cache according to the start address of the N functions and the start address of the first global variable, data that is in the memory and that is associated with the first global variable.