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

Usage Description

  • Method 1: Use LD_PRELOAD to overwrite the original implementation.
    LD_PRELOAD=/usr/local/ksl/lib/libkpglibc.so <program to be run>
  • Method 2: Add the -L and -l options to the gcc command to link libkpglibc.so.
    gcc -O3 -o test_memcmp test_memcmp.c -L/usr/local/ksl/lib -lkpglibc

    The -O3 compilation option needs to be enabled during test code compilation. If the gettimeofday or clock_gettime function is required, use LD_PRELOAD to load libkpglibc_time.so.