Rate This Document
Findability
Accuracy
Completeness
Readability

Specifying stringlib

The memcpy and memmove functions are often used to copy memory in the C standard library. BiSheng compiler implements a vectorized version with high performance for Arm processors.

Use the neon version.

1
clang -O3 -Wl,--defsym,memcpy=__memcpy_aarch64_simd -Wl,-Bstatic -lstringlib -Wl,-Bdynamic

Uses the sve version.

1
clang -O3 -Wl,--defsym,memcpy=__memcpy_aarch64_sve -Wl,-Bstatic -lstringlib -Wl,-Bdynamic

The dynamic link library file of stringlib is stored in the BiShengCompiler-4.2.0-aarch64-linux/lib directory. You can use -lstringlib only after this directory is added to LD_LIBRARY_PATH. Otherwise, you need to add -L$(library) to specify the library path during compilation.