http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56630
Bug #: 56630
Summary: gcc's address-sanitizer uses 75% more memory than
clang's on simple testcase
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: sanitizer
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
markus@x4 ~ % c++ -O2 -fsanitize=address bench.cpp
markus@x4 ~ % time ./a.out
...
./a.out 61.65s user 1.10s system 100% cpu 1:02.75 total
UID PID PPID C SZ RSS PSR STIME TTY TIME CMD
markus 3810 22602 99 4563582920 3183864 1 09:15 pts/12 00:01:02 ./a.out
markus@x4 ~ % clang++ -O2 -fsanitize=address bench.cpp
markus@x4 ~ % time ./a.out
...
./a.out 64.04s user 0.29s system 100% cpu 1:04.31 total
UID PID PPID C SZ RSS PSR STIME TTY TIME CMD
markus 3722 22602 99 4295159814 784236 0 09:13 pts/12 00:01:01 ./a.out