![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
gcc
文章平均质量分 89
gcc笔记
sif_666
If you can't explain it to a six year old, you don't understand it yourself.
展开
-
理解ASAN的shadow memory和读懂报错信息
什么是ASANASAN(Address Sanitizer)是一个内存检测工具。gcc4.8版本及以上自带。支持多平台(x86, ARM, MIPS (both 32- and 64-bit versions of all architectures), PowerPC64)、多操作系统(Linux, Darwin (OS X and iOS Simulator), FreeBSD, Android)。ASAN主要由两部分构成:instrumentation module和run-time librar原创 2021-06-16 20:37:31 · 3716 阅读 · 0 评论 -
gcc自带sanitizer工具使用
Sanitizers是谷歌发起的开源工具集,包括了AddressSanitizer, MemorySanitizer, ThreadSanitizer, LeakSanitizer,Sanitizers项目本是LLVM项目的一部分,但GNU也将该系列工具加入到了自家的GCC编译器中。GCC从4.8版本开始逐步支持 Sanitizer,这些工具都是查找隐藏Bug的利器。AddressSanitizer可用于检测 memory out-of-bounds 和 use-after-free。Address原创 2021-06-16 20:33:31 · 5339 阅读 · 0 评论 -
理解freestanding implementation 和 hosted implementation
The ISO C standard defines (in clause 4) two classes of conforming implementation. Aconforming hosted implementation supports the whole standard including all the libraryfacilities; a conforming freestanding implementation is only required to provide ce.原创 2021-06-10 22:04:32 · 1210 阅读 · 0 评论