ndiddy 6 days ago

GCC and Clang support asan/ubsan, which lets you trade performance for nicer behavior related to memory access and undefined behavior. Whenever I do C development for a platform that supports asan/ubsan, I always develop and test with them enabled just because of how much debugging time they save.

1
uecker 5 days ago

Yes. Ubsan you should probably also turn on in production.