Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Mac OS Runtime Architectures /
Chapter 9 - CFM-68K Application and Shared Library Structure


CFM-68K Shared Library Structure

In some development environments, creating a CFM-68K shared library involves first creating a segmented version of the library and then flattening it to produce a contiguous program that is stored in the file's data fork. In MPW, the mechanism for flattening segmented shared libraries is the MakeFlat tool. This section describes what conversions are necessary to go from a segmented state to a flattened state and how MakeFlat implements these conversions.

You need to read this section in either of these two cases:

An unflattened shared library has a structure very similar to that of a CFM-68K runtime application. The main differences are as follows:

The structure changes radically, however, when you flatten the segmented library using the MakeFlat tool. MakeFlat makes the following changes to a segmented shared library:

After making these changes, MakeFlat writes the PEF container to the data fork of the output file.

The following sections describe some of the conversions in greater detail.


Subtopics
Jump Table Conversion
Transition Vector Conversion
Static Constructors and Destructors

Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 MARCH 1997