Showing posts with label gpp_flags. Show all posts
Showing posts with label gpp_flags. Show all posts
May 7, 2019
Oct 17, 2016
[gcc] optimize without 'called only once' function
https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html
Look for:
-fwhole-program
reddit: inlining_main_is_special
while marked as "called only once" ,
i.e
static functions,
functions in an anonymous namespace,
compile with -fwhole-program
Oct 4, 2016
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
-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
Subscribe to:
Posts (Atom)