Hi all,
GCC version of Asan currently lacks options for detailed control over
code instrumentation. These are not usually necessary but for embedded
systems with scarce system resources Asan memory overhead of 2x-3x may
often be unacceptable.
It seems that LLVM provides some options to allow programmer select
which part of his code/memory he's interested in:
* -asan-instrument-reads
* -asan-instrument-writes
* -asan-memintrin
* -asan-stack
* -asan-globals
* -blacklist
These options allow one to selectively turn on Asan for separate parts
of code / classes of memory thus reducing the net overhead.
Would GCC community be interested of similiar functionality? We could
start with implementing above options in 4.9.
-Y