https://blog.csdn.net/understand125/article/details/80689564
https://blog.csdn.net/fengbingchun/article/details/97756419
创建一个脚本build.sh, 内容如下:
./configure --host=arm-hisiv100nptl-linux --prefix=/`pwd`/valgrind CC=arm-hisiv100nptl-linux-gcc CPP=arm-hisiv100nptl-linux-cpp AR=arm-hisiv100nptl-linux-ar
检测命令
./valgrind --tool=memcheck --leak-check=full ./main
来源:CSDN
作者:ren1204
链接:https://blog.csdn.net/ren1204/article/details/103989773