Linker Tasks

Using Linker commands

 

Dynamic Linking with -A and -R

 

This section describes how to do dynamic linking — that is, how to add

 

an object module to a running program. Conceptually, it is very similar to

 

loading a shared library and accessing its symbols (routines and data).

 

In fact, if you require such functionality, you should probably use shared

 

library management routines (see Chapter 6, “Shared Library

 

Management Routines,” on page 195).

 

However, be aware that dynamic linking is incompatible with shared

 

libraries. That is, a running program cannot be linked to shared libraries

 

and also use ld -Ato dynamically load object modules.

 

Another reason to use shared library management routines instead of

NOTE

 

dynamic linking is that dynamic linking may not be supported in a

 

future release. See “Linker Compatibility Warnings” and “Changes in

 

Future Releases” on page 32for additional future changes.

 

Topics in this section include:

 

 

“Overview of Dynamic Linking” describes steps to load an object file

 

 

into a running program.

 

“An Example Program” provides an example dynamic linking

 

 

scenario.

 

Overview of Dynamic Linking

 

The implementation details of dynamic linking vary across platforms. To

 

load an object module into the address space of a running program, and

 

to be able to access its procedures and data, follow these steps on all

 

HP9000 computers:

 

1.

Determine how much space is required to load the module.

 

2.

Allocate the required memory and obtain its starting address.

 

3.

Link the module from the running application.

 

4.

Get information about the module's text, data, and bss segments from

 

 

the module's header.

 

5.

Read the text and data into the allocated space.

 

6.

Clear (fill with zeros) the bss segment.

 

7.

Flush the text from the data cache before executing code from the

 

 

loaded module.

Chapter 3

65

Page 65
Image 65
Kenwood HP 9000 manual Dynamic Linking with -A and -R, Overview of Dynamic Linking

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.