Rate This Document
Findability
Accuracy
Completeness
Readability

Specifying jemalloc

BiSheng Compiler supports the jemalloc library. jemalloc is a general malloc implementation that is integrated into the toolchain as a dynamic library to reduce memory fragments and improve concurrency performance. The following is an example:

1
clang -O3 -ljemalloc

The dynamic link library file of jemalloc is stored in BiShengCompiler-5.2.0-aarch64-linux/lib. You can enable jemalloc only after the file is added to LD_LIBRARY_PATH. Otherwise, the corresponding dynamic library may not be found at runtime.