MPW 3.2 Toolbox Interfaces And Libraries
MPW 3.2 Toolbox Interfaces And Libraries
Macintosh · PDF
| Filename | MPW_3.2_Toolbox_Interfaces_and_Libraries_199107.pdf |
|---|---|
| Size | 2.97 MB |
| Subsection | developer / MPW / MPW_3.2 |
| Downloads | 0 |
Contents
®
Macintosh®Programmer's Workshop
Toolbox Interfaces and Libraries
Version 7.0
M0615LUB
030-B0 16-A
030-3622-A
MPW 3.2 Libraries/Interfaces
Release
Notes
Libraries
Changes to the libraries since MPW 3.0 include the elimination of CInterface.o and
CRuntime.o, their functionality having been merged into Interface.o and Runtime.o. The
libraries have been resegmented so as to reduce the number of modules in segment "main".
The MPW 3.2 C libraries conform to the current ANSI C standard. A number of modifications and additions have been made to the set of library functions, including new C-like
string functions for Pascal strings and a C function for setting the type and creator on any
file. A new library provides for the creating of applications that use a simple text I/O window to display and read console I/O (SlOW). For details, see the MPW 3.2 Simple
Input/Output Window Release Notes.
Linking Requirements
The library CLib881.0 has a new positioning requirement as a consequence of the elimination of CRuntime.o. CLib881.0 must now not only precede all members of {CLibraries}
in the link sequence but must also precede the library Runtime.o.
Note that XCMDs for Hypercard require linking into one segment. Because of the new
segmentation of the library, this will no longer happen automatically. This requirement can
be met by putting the option -sg main on the link: command line to force the library routines and your code into a single segment.
MPW 3.2 LibrarieslInterfaces
Release Notes
1
Copyright Apple Computer, Inc.
1990-1991. All rights reserved.
Segmentation
The libraries have been resegmented, moving many of the modules out of the segment
"Main". The goal of changing the segmentation is to minimize the number of modules in
the segment "Main". This way, if the user needs the space in "Main" for his application or
tool, he has it. If he is more concerned about speed, the user can then manipulate his
makefile to contain whatever he needs in his "Main" segment.
• Segment layout
LIBRARY
Runtlme.o
Se&ment
Contents
MAIN
%A5Init
INTENV
Initialization and exit procedures, 32 bit math operations
A5 initialization code, _DataInit, Module #000 1
Low level IOPort functions and I/O which directly calls
those functions - done for pc relative offsets
Device drivers <.S.tand Alone Devices)
SADEV
LIBRARY
Pasllb.o
SelWlent
Contents
MAIN
INTENV
Compiler initializations (the functions call Runtime.o)
I/O which directly calls segment INTENV in Runtime.o
(may change in the future)
Pascal language I/O
Heap, strings and math functions
SIDIO
PASLIB
LIBRARY
StdCLlb.o
Contents
SIDIO
SIDCLm
MPW 3.2 LibrarieslInterfaces
Release Notes
C language I/O
All ANSI functions (except I/O)
2
Copyright Apple Computer, Inc.
1990-1991. All rights reserved.
LIBRARY
Stubs.o
Sewent
Contents
SADEV
Device drivers (stubs out the driver functions)
LIBRARY
DRVRRuntime.o
Se&ment
Contents
MAIN
Driver initialization and exit procedures
Changes to C Library…
Showing first 3,000 characters of 48,427 total. Open the full document →