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


Jump Table Conversion

When MakeFlat flattens jump table entries, it changes the addressing method from one that is segment oriented to one that is code section oriented. This involves removing the segment number (since it serves no purpose in a flat file), changing the LoadSeg instruction to a Jmp Abs.L instruction, and copying the routine's offset into the new entry. Then, MakeFlat generates a relocation instruction for each jump table entry that adds the code section's address to the routine's offset. Figure 9-6 compares the two jump table versions.

Figure 9-6 Segmented versus flattened jump table entries


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 MARCH 1997