Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This has changed since 2011. Both GCC and LLVM/Clang support

export CFLAGS="-ggdb -fsanitize=address"

And few other "sanitizers". They add a runtime to the binary so you get the backtrace, detect runtime "silent" errors (undefined behaviors) and overall help develop C/C++ programs.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: