>From the beginning I was wondering about this flag in nim.cfg.

[http://stackoverflow.com/questions/98650/what-is-the-strict-aliasing-rule](http://stackoverflow.com/questions/98650/what-is-the-strict-aliasing-rule)

Can you give an example where -fno-strict-aliasing is really needed for Nim. Of 
course we may get problems when casting pointers and using pointers of 
different data types pointing to the same memory location. But where does that 
occur, is it used in Nim libs?

no-strict-aliasing reduces performance of my chess engine by 3%, that is really 
not much of course.
    
    
    cat nim.cfg
    # for gcc 6.3
    path:"$projectdir"
    nimcache:"/tmp/$projectdir"
    gcc.options.speed = "-march=native  -O3  -flto -fno-strict-aliasing"
    

Reply via email to