Sun Studio 12 Update 1: C++ User's Guide

Examples

To enable automatic inlining while disabling inlining of the function declared int foo(), use


example% CC -xO5 -xinline=%auto,no%__1cDfoo6F_i_ -c a.cc

To strongly request the inlining of the function declared as int foo(), and to make all other functions as the candidates for inlining, use


example% CC -xO5 -xinline=%auto,__1cDfoo6F_i_ -c a.cc

To strongly request the inlining of the function declared as int foo(), and to not allow inlining of any other functions, use


example% CC -xO5 -xinline=__1cDfoo6F_i_ -c a.cc