Scenario-based Optimization
- Generally, the basic optimization level -O2 or -O3 is selected.
- -mcpu=tsv110 is used on a Kunpeng machine with microarchitecture affinity.
- A high-performance math library is specified for HPC applications that have computing bottlenecks and involve frequent math library function invoking. For details, see Specifying Math Libraries.
- jemalloc is enabled for the memory access bottleneck optimization. For details, see Specifying jemalloc.
- LTO is enabled for the front-end bottleneck optimization, such as databases and distributed storage applications. For details, see LTO.
Parent topic: BiSheng Compiler Options