Branch prediction method and device, electronic equipment and computer readable storage medium
The invention relates to a branch prediction method and device, electronic equipment and a computer readable storage medium. The method comprises the following steps: acquiring an executable file of an application program; the executable file is generated by an assembly file obtained by compiling th...
Gespeichert in:
Hauptverfasser: | , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention relates to a branch prediction method and device, electronic equipment and a computer readable storage medium. The method comprises the following steps: acquiring an executable file of an application program; the executable file is generated by an assembly file obtained by compiling the application program; the assembly file comprises dynamic branch prediction instructions corresponding to different functions in the application program; according to the function calling test data of the executable file, determining a target function set of the application program; for each function in the target function set, adopting a mode of replacing a dynamic branch prediction instruction with a static branch prediction instruction to iteratively update the assembly file until a target assembly file meeting the performance optimization requirement is obtained; and generating an optimized executable file of the application program by adopting the target assembly file. By adopting the method, the branch predi |
---|