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

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.