其他分享
首页 > 其他分享> > Sanitizers for C Compilation

Sanitizers for C Compilation

作者:互联网

gcc has some useful tools to help us find bugs.
Example:

gcc -lpthread -fsanitize=thread  #check data race
gcc -fsanitize=address #check memory error

Actually, there are many other sanitiers which can be the option: image

标签:gcc,useful,help,fsanitize,Compilation,some,Sanitizers,check
来源: https://www.cnblogs.com/linfengshu/p/16260439.html