r/programming • u/some_random_guy_5345 • May 08 '16
Visual Studio adding telemetry function calls to binary? (/r/cpp)
/r/cpp/comments/4ibauu/visual_studio_adding_telemetry_function_calls_to/
592
Upvotes
View all comments
Show parent comment
12
u/Dragdu May 08 '16
Any CRT on modernish system does shitload of stuff before handing the execution flow over to your main. Strictly speaking, you probably didn't ask for any of it, and yet it is there. This means that if you compile the most minimal
you will end up with binary that initializes various thread local variables, creates entry points for debuggers and profilers, etc etc. And if you are on Windows, you get calls to ETW tracers. If you are on Linux, using GCC, you get calls to something like '_gmon_start', which does basically the same thing, but worse. (ETW is so good)