[zeromq-dev] Effect of compiler-performed optimisation on the performance

Steven McCoy steven.mccoy at miru.hk
Wed Apr 9 11:12:03 CEST 2008


Martin Sustrik wrote:
> We've tested the impact of different compilers and optimisation levels 
> on 0MQ performance. The whitepaper can be found here:
>   
Is performance affected when enabling stack protection?  Debian does not 
enable it by default:

       -fstack-protector
           Emit extra code to check for buffer overflows, such as stack 
smashing attacks.  This is done by adding a guard variable
           to functions with vulnerable objects.  This includes 
functions that call alloca, and functions with buffers larger than
           8 bytes.  The guards are initialized when a function is 
entered and then checked when the function exits.  If a guard
           check fails, an error message is printed and the program exits.

           NOTE: In Ubuntu 6.10 and 7.04 this option is enabled by 
default for C, C++, ObjC, ObjC++.

-- 
Steve-o



More information about the zeromq-dev mailing list