Showing posts with label gpp_flags. Show all posts
Showing posts with label gpp_flags. Show all posts

May 7, 2019

[C++] -Wredundant-move && -Wpessimizing-move

2 flags for compiling(both clang++ / g++ support these flags) as well as vimrc usage :-)

-Wpessimizing-move
-Wredundant-move

Those 2 flags become quite useful in C++17 since the standard makes RVO mandatory.

Oct 4, 2016

[cppcon2016] [c++] Improving Performance Through Compiler Switches - Tim Haines

Sep 30, 2015

[C++] compiler flags

-O3
-std=c++14
-stdlib=libc++
-lc++abi
-Wl, -rpath=~
-fno-exceptions
-fno-rtti
-Wall
-pedantic
-Werror
-isystem ~
-pthreads
-fno-omit-frame-pointer
-fno-elide-constructors // avoid nrvo rvo