I made a non-scientific benchmark on my laptop with my project. Although
jumping from -O2 to -Ofast giving me dramatic speed boost, it's interesting
to see that going from gcc-4.9 to clang-3.9, there's no difference, just
margin of error. The test is non-scientific, I worked on my PC at midday on
r
Thank You!
2016-07-08 15:20 GMT+02:00 Valentin V. Bartenev :
> On Friday 08 July 2016 14:44:00 Lantos István wrote:
> > The default --with-cc-opt flags for Nginx are these:
> >
> > *--with-cc-opt='-g -O2 -fstack-protector-strong -Wformat
> > > -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2'*
> >
On Friday 08 July 2016 14:44:00 Lantos István wrote:
> The default --with-cc-opt flags for Nginx are these:
>
> *--with-cc-opt='-g -O2 -fstack-protector-strong -Wformat
> > -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2'*
> >
>
> However I added more optimizations, which are against the standard
Seems like --with-cc=clang flag is where I can define clang compiler. Is it
safe to use with --with-cc-opt='-std=c11 ...? I think clang uses C11 anyway.
2016-07-08 14:44 GMT+02:00 Lantos István :
> The default --with-cc-opt flags for Nginx are these:
>
> *--with-cc-opt='-g -O2 -fstack-protector-s
The default --with-cc-opt flags for Nginx are these:
*--with-cc-opt='-g -O2 -fstack-protector-strong -Wformat
> -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2'*
>
However I added more optimizations, which are against the standard:
*--with-cc-opt='-g -Ofast -march=native -ffast-math
> -fstack-pr