Documentation for the Mac OS 7.1 Source Code Reconstruction
This document provides a detailed overview of the Macintosh System 7.1 architecture as implemented in this repository.
The system follows a Monolithic Kernel design combined with a Toolbox API layer.
WaitNextEvent).graph TB
subgraph User Space
App[Application]
Finder[Finder / MiniFinder]
end
subgraph Toolbox Layer
WM[Window Manager]
MM[Menu Manager]
QD[QuickDraw]
Dlg[Dialog Manager]
end
subgraph OS Layer
Trap[Trap Dispatcher]
PM[Process Manager]
Mem[Memory Manager]
HFS[File System (HFS)]
Res[Resource Manager]
end
subgraph Hardware Abstraction
Drivers[Device Drivers]
ADB[ADB Manager]
SCSI[SCSI Manager]
end
subgraph Hardware
CPU[m68k CPU]
RAM[Memory]
Disk[Disk Drive]
Video[Video Card]
end
App --> WM
App --> MM
App --> QD
Finder --> WM
WM --> Trap
MM --> Trap
Trap --> PM
Trap --> Mem
Trap --> Res
Res --> HFS
HFS --> SCSI
SCSI --> Drivers
Drivers --> Hardware
LaunchApplication.EventRecord and places it in the System Event Queue.WaitNextEvent.HandleClick).The build system transforms source code into a “System” file (technically a suitcase of resources).
graph LR
Src[Source Code (.c, .p, .a)] --> Compiler[MPW Compilers]
Compiler --> Obj[Object Files (.o)]
Obj --> Linker[MPW Linker]
Linker --> CodeRes[CODE Resources]
ResSrc[Resource Definitions (.r)] --> Rez[Rez Compiler]
Rez --> Rsrc[Resource Files (.rsrc)]
CodeRes --> System[System File]
Rsrc --> System