I am using /Gh and /GH options to analyse my program.
However, compile with these options may hook those std functions which I'm not concerned but causing a lot extra time cost.
How can I avoid compiler to hook std functions?
update:
I’ve read some msvc stl source code and find out that it’s difficult to avoid being hook because most of the stl source code are implemented in header files.
But gcc have compile options like -nostdinc++ -nodefaultlibs
a libc++ usage example:
$ g++ -nostdinc++ -I<libcxx-install-prefix>/include/c++/v1 \
test.cpp -nodefaultlibs -lc++ -lc++abi -lm -lc -lgcc_s -lgcc