On Fri, Dec 6, 2013 at 3:59 PM, Yury Gribov <[email protected]> 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 <[email protected]>
> Sent:  Friday, December 06, 2013 3:55PM
> To: Konstantin Serebryany <[email protected]>
> Cc: GCC Patches <[email protected]>, Viacheslav Garbuzov
> <[email protected]>, Max Ostapenko <[email protected]>
> 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