[llvm-dev] Asan code size overhead

Shi, Steven via llvm-dev llvm-dev at lists.llvm.org
Wed Oct 26 07:42:25 PDT 2016


Hi Kcc,
I'm trying enabling the Asan in my firmware, but I find the asan instrumentation code size impact is too big for me. I just implement necessary firmware version runtime library functions (e.g. __asan_report_load8) with blank body firstly to pass the asan enabled build, but I find the new binary code size is already ~2.5 times as original one with asan disabled in GCC. I know Linux kernel already enabled the asan (a.k.a Kasan), and is there any magic of asan for Linux to control its code size impact? Please advise how to mitigate the asan code size overhead.


Steven Shi
Intel\SSG\STO\UEFI Firmware

Tel: +86 021-61166522
iNet: 821-6522

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20161026/720d5810/attachment.html>


More information about the llvm-dev mailing list