On Fri, Dec 6, 2013 at 3:59 PM, Yury Gribov <y.gri...@samsung.com> wrote:
>> big code size reduction
>
> I meant to say "instrumented code size reduction"...

I agree.
Reads are usually 2/3 of all memory accesses in a program (counted
both statically or dynamically).
So if you instrument only writes you get just 1/3 of instrumentation
and slowdown.
Of course, you also get a smaller amount of bugs.

>
> -Y
>
> -----------------------------------------------
> From: Yury Gribov <y.gri...@samsung.com>
> Sent:  Friday, December 06, 2013 3:55PM
> To: Konstantin Serebryany <konstantin.s.serebry...@gmail.com>
> Cc: GCC Patches <gcc-patches@gcc.gnu.org>, Viacheslav Garbuzov
> <v.garbu...@samsung.com>, Max Ostapenko <m.ostape...@partner.samsung.com>
> Subject: Re: RFC Asan instrumentation control
>
>
> On 12/06/2013 03:55 PM, Yury Gribov wrote:
> Konstantin Serebryany wrote:
>> only -asan-stack and -asan-globals affect the memory overhead
>
> But disabling code also counts. -asan-instrument-reads=0 may result in big
> code size reduction (I'd say over 50%).
>
> -Y
>
>
>

Reply via email to