Macintosh Toolbox

The Macintosh Toolbox was a set of resources, drivers, routines and APIs stored in the ROM of "Old World ROM" Macintosh computers.
When the original Macintosh was designed, ROM was faster than RAM, and RAM was expensive, so a large part (though not all) of the Macintosh's operating system was implemented in ROM, so that common routines (such as libraries, graphics routines, etc) did not need to be loaded from an operating system file at all. The part of the operating system loaded from disk was named the Macintosh System Software (which many years later was renamed "Mac OS", and is now referred to as "Classic Mac OS".)
A "trap" mechanism was used to allow software patches to the code in ROM: any requests for that resource were "trapped" and rerouted to the patched version in RAM.
With the release of the iMac, the first "New World ROM" Mac, the Toolbox ROM disappeared as hardware, instead re-implemented as a ROM file on the hard disk. The Open Firmware boot ROM loaded the ROM file into RAM, at which point the Classic Mac OS startup process continued as usual.
In Mac OS X, the Toolbox is not used at all, though the Classic environment loads the Toolbox ROM file into its virtual machine.
The Macintosh Toolbox was originally prototyped and debugged in Pascal, and then rewritten in Motorola 68000 assembly language for speed and to fit within the size constraints of the ROM technology available at the time.
Many other Macintosh APIs have been referred to as toolboxes.
==References==
*Inside Macintosh: Macintosh Toolbox Essentials (PDF), Apple Developer Connection. 1992.
==External links==
*Inside Macintosh: Macintosh Toolbox Essentials at Apple Developer Connection (archived 2003-07-08)
**Inside Macintosh: More Macintosh Toolbox (mirrored)
*Mac Toolbox Mysteries at Big Mess o' Wires (2011-09-23)
* at Wikipedia
Category:Classic Mac OS
Category:Macintosh firmware