Ways to Improve Performance

Profile-Based Optimization

 

+O2

Full optimization within each procedure in a file. (Can

 

 

also be invoked as -O.)

 

+O3

Full optimization across all procedures in an object file.

 

 

Includes subprogram inlining.

 

+O4

Full optimization across entire application, performed

 

 

at link time. (Invokes ld +Ofastaccess

 

 

+Oprocelim.) Includes inlining across multiple files.

 

Be aware that +O3 and +O4 are incompatible with symbolic debugging.

NOTE

 

The only compiler optimization levels that allow for symbolic debugging

 

are +O2 and lower.

 

For more detailed information on compiler optimization levels, see your

 

compiler documentation.

 

PBO has the greatest impact when it is combined with level 2 or greater

 

 

optimizations. For instance, this compile command combines level 2

 

optimization with PBO (note that the compiler options +O2 and -Oare

 

equivalent):

 

 

$ cc -v -O +I -c prog.c

 

/opt/langtools/lbin/cpp prog.c /var/tmp/ctm123

 

/opt/ansic/lbin/ccom /var/tmp/ctm123 prog.o -O2 -I

 

$ cc -v -O +I -o prog prog.o

 

/usr/ccs/bin/ld /opt/langtools/lib/icrt0.o -u main -o prog \

 

prog.o -I -lc

 

 

The optimizations are performed along with instrumentation. However,

 

profile-based optimizations are not performed until you compile later

 

with +P:

 

 

$ cc -v +P -o prog prog.o

 

/usr/ccs/bin/ld /usr/ccs/lib/crt0.o -u main \

 

-o prog prog.o -P -lc

Using PBO to Optimize Shared Libraries

Beginning with the HP-UX 10.0 release, the -Ilinker option can be used with -bto build a shared library with instrumented code. Also, the -P, +df, and +pgm command-line options are compatible with the -boption.

To profile shared libraries, you must set the environment variable SHLIB_FLOW_DATA to the file that receives profile data. Unlike FLOW_DATA, SHLIB_FLOW_DATA has no default output file. If SHLIB_FLOW_DATA is not set, profile data is not collected. This allows you to activate or suspend the profiling of instrumented shared libraries.

286

Chapter 8

Page 286
Image 286
Kenwood HP 9000 manual Using PBO to Optimize Shared Libraries, 286

HP 9000 specifications

The Kenwood HP 9000 is a cutting-edge home appliance designed for culinary enthusiasts seeking to elevate their cooking experience. This powerful kitchen machine stands out for its multi-functionality, combining the roles of a food processor, blender, and mixer into one sleek unit.

One of the flagship features of the Kenwood HP 9000 is its robust motor, which delivers exceptional performance across various tasks. With a powerful motor that operates at multiple speeds, users can tackle everything from kneading dough to finely chopping vegetables with ease. The variable speed control allows for precision, ensuring that every ingredient is processed to perfection according to individual preferences.

The HP 9000 comes equipped with a variety of attachments that enhance its versatility. Among these are a stainless-steel mixing bowl, a dough hook, a whisk, and multiple cutting blades. This extensive array of accessories means that users can whip up delightful pastries, create homemade pasta, or prepare smoothies with minimal hassle. Each attachment is designed for easy attachment and removal, making the transition between tasks seamless and efficient.

Another key characteristic of the Kenwood HP 9000 is its advanced safety features. The design incorporates mechanisms that prevent the machine from operating unless all components are securely in place. This not only gives users peace of mind while cooking but also ensures longevity for the appliance, reducing the risk of wear and tear over time.

In terms of design, the HP 9000 is both modern and aesthetically pleasing. Its ergonomic shape and compact size make it easy to store and use in various kitchen settings, while the high-quality materials used in its construction guarantee durability and longevity. The user interface is intuitive, with clearly labeled buttons that facilitate operation, ensuring that even novice cooks can navigate the machine effortlessly.

Additionally, the Kenwood HP 9000 features innovative technologies, such as an integrated digital timer and a pulse function for added control during food preparation. These features enhance cooking precision, allowing users to achieve consistent results every time.

In summary, the Kenwood HP 9000 is an exceptional kitchen appliance that combines power, versatility, and safety. With its advanced features and user-friendly design, it is an ideal choice for anyone looking to simplify their cooking process while achieving professional-level results. Whether you're whipping up a quick meal or tackling an elaborate recipe, the HP 9000 is a reliable companion that will inspire culinary creativity.