Logging in debug and release builds

Armel Asselin armelasselin at hotmail.com
Fri Aug 11 01:51:44 PDT 2006


> But what arguments do we have for it being true? Until we have any, let's
> suppose that it's false and that the compiler does optimize their 
> arguments
> away, just like it's supposed to. Please let's not try to solve the 
> problem
> before we're sure if there is one.
it is not possible to optimize out a function call used as an argument 
unless as stated before (inlined, trivial...) even if the argument is then 
not used at all.
there is unfortunately no way to do that in C/C++ because it lacks the 
notion of idem potent functions, so there is no way to now if a function as 
side effect from its declaration (global optimizers _may_ be able to 
optimize simple stuff though)

btw, i think that i'm going to have look to the release .lib / .dll code to 
see in the assembly if the code actually remains in the case of wx or if 
there are simply no such functions calls (translations stuff unfortunately 
are), and see if it has an impact.

Armel








More information about the wx-users mailing list