How big is the slowdown? Did you try using ASan with higher optimization levels (-O1, -O2, -O3)?
At the point where ASan instruments memory reads and writes, it doesn't know whether the destination is a stack variable, a global variable or a pointer to the heap. So I don't think there's a way of selectively only instrumenting stack and/or globals. Kuba > On 21 Jun 2017, at 04:11, Aayushi Agrawal <[email protected]> wrote: > > Hello > > I used " -fsanitise=address " as one of the option for compiling my program > with clang. > But it slows down the execution of the program. > > Can anybody please tell me that is there a way to only check the stack > variables overflow, global variables overflow and avoid all other checks > using ASAN which could help in improving the execution speed? > > > -- > You received this message because you are subscribed to the Google Groups > "address-sanitizer" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- You received this message because you are subscribed to the Google Groups "address-sanitizer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
