# Programming The PowerPC 1994 — source transcripts, page 2

[Canonical transcript page](https://www.vintageapple.net/transcripts/media/va-programming-the-powerpc-1994-b24673/2)

## Transcribed source material

Machine transcriptions and image descriptions; uncertain copy may be marked [illegible]. Verify against the linked originals. Historical rights remain with the original owners.

These are transcribed excerpts, not the full publications. Open the originals for remaining pages.

### PDF page 12

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-programming-the-powerpc-1994-b24673/2#scan-f38790b60dfc7694ba88c40513e2214df8344a9a8b854158c1f4394e526745c9)

Transcribed text:

Table   of Contents
Numerics Libraries and the   PowerPC   . . . . . . . . . . . . . . . .   213
Numerics   Porting   Considerations   . . . . . . . . . . . . . . . . . . .   216
The extended and double_t Data Types . . . . . . . . . .   216
Eliminate the comp Data Type   . . . . . . . . . . . . . . . . .   218
Be Aware of How Expressions Are Evaluated . . . . . .   218
Chapter Summary   . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .   223
Chapter   10   . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .   225
Porting   Code to Native   PowerPC   . . . . . . . . . . . . . . . . . . . . . . . .   225
Porting   Preparation   . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .   226
Use   the Universal Header Files   . . . . . . . . . . . . . . . . .   226
Change Assembly Code to C Code   . . . . . . . . . . . . . .   229
ANSI   C and the   PowerPC   . . . . . . . . . . . . . . . . . . . . . . . . . .   230
Change int Variables to   Other   Integral Types   . . . . .   230
Use   ANSI   Function Declarations   . . . . . . . . . . . . . . .   233
Use   Function   Prototypes   . . . . . . . . . . . . . . . . . . . . . .   236
Using a Single Source File For
Both 68K and   PowerPC   Development   . . . . . . . . . . . . .   237
Using Conditional Compilation Directives   . . . . . . .   238
QuickDraw Globals and Conditional
Compilation Directives   . . . . . . . . . . . . . . . . . . . . .   239
How the Compiler Knows   If   powerc Is Defined . . . .   242
PowerPC   Compatibility   . . . . . . . . . . . . . . . . . . . . . . . . . . .   248
Keep Code 32-bit Clean   . . . . . . . . . . . . . . . . . . . . . . .   248
Use   Access Functions for Low-Memory Globals   249
Use   Universal   Procedure
Pointers   in   Place   of   ProcPtrs   . . . . . . . . . . . . . . . . .   254
Data Alignment   . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .   255
The   680x0   Alignment Convention   . . . . . . . . . . . . . .   256
The   PowerPC   Alignment Convention   . . . . . . . . . . .   258
xiii

Reading notes: Source is a table of contents with dot leaders and page numbers; no advertised products, prices, or dates present.

Languages: English

[Original PDF page 12](https://www.vintageapple.net/files/1036439515b824de581b3949342b5b0b4770650892ce13dc109b6c0189990591/Programming_The_PowerPC_1994.pdf#page=12)

[Previous transcribed scans](https://www.vintageapple.net/transcripts/media/va-programming-the-powerpc-1994-b24673/1.md)
