我要评分
获取效率
正确性
完整性
易理解

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. Sample usage:

1
clang -O3 -ljemalloc

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