Creating and Using Libraries

Using Shared Libraries in 64-bit mode

1.First, the dependent shared libraries for libA are built. (Other libraries are also built.)

ld -b libD.o -o libD.sl ld -b libE.o -o libE.sl ld -b libF.o -o libF.sl ld -b libB.o -o libB.sl ld -b libC.o -o libC.sl

libA dependent shared library libA dependent shared library libA dependent shared library

2.Next, libA.o is linked to its dependent libraries and libA.sl is built.

ld -b libA.o -lD -lE -lF -o libA.sl

3.Finally, main.o is linked to its shared libraries. cc main.o -lA -lB -lC -o main

In the 32-bit mode linker toolset, if a procedure called same_name() is defined in libD.sl and libB.sl, main calls the procedure defined in libD.sl. In 64-bit linker toolset, main calls same_name() in libB.sl.

If you use mixed mode shared libraries, the search mechanism may produce unexpected results.

For the following command, libA.sl and its dependent libB.sl are compatibility mode libraries and libC.sl and libD.sl are standard mode libraries.

ld -b libF.o +compat -L.-lA -lC -o LibF.sl

libF.sl is a compatibility mode library, but is dependent libC.sl is a standard mode library. The linker uses depth-first searching mechanisms because the highest-level library is in compatability mode.

Mixed Mode Shared Libraries

A mixed mode shared library is a library whose children are all of one type (for example, +compat), but whose grandchildren may be of the other mode. This poses some problems when linking and loading the libraries. To help resolve this, the linker treats each library as having any mode. Therefore, when it sees a compatibility mode library, it searches for it using the 32-bit-style algorithms. For any standard mode library, it uses the 64-bit-style algorithms.Only the load order of the libraries themselves is fixed between depth-first or breadth-first.

184

Chapter 5

Page 184
Image 184
Kenwood HP 9000 manual Mixed Mode Shared Libraries, 184

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.