Optimization of BiSheng Compilation Options
The BiSheng Compiler is a high-performance compiler for the Kunpeng platform. It is developed based on the open source LLVM. In addition to general functions and optimization of LLVM, the BiSheng Compiler has the middle- and back-end key technologies optimized. These optimizations can be used to improve the running performance of programs.
- The BiSheng Compiler supports jemalloc and stores it as a dynamic library in the BiSheng Compiler toolchain. jemalloc is a general malloc implementation that focuses on reducing memory fragments and improving concurrency performance.
Add the compilation option -ljemalloc.
- The BiSheng Compiler supports link-time optimization (LTO), which enables optimization across modules and overall analysis of a program and eliminates unnecessary code. However, this function increases memory usage and prolongs the compile time.
Add the compilation option -flto.
There are other compilation options for program optimization, including the optimization options customized by BiSheng. For details, see Kunpeng Compiler User Guide (BiSheng Compiler).
Parent topic: Optimization Methods