Mac OS 7.1 Source Docs

Documentation for the Mac OS 7.1 Source Code Reconstruction

View the Project on GitHub belikh/sys71src

Development Guide

This guide describes the workflow for contributing to the project and understanding the codebase structure.

Directory Layout

Code Style

The codebase follows Apple’s internal style from the early 90s.

Workflow

1. Adding a New Feature

  1. Identify the appropriate module in OS/ or Drivers/.
  2. Add your source file (e.g., .c or .a).
  3. Update the Make/MainCode.Make file to include your new object in the link list.
    • Tip: You can use patch_makefile.sh logic to append it if you don’t want to edit the makefile directly.

2. Modifying Existing Code

  1. Locate the source file.
  2. Edit the code.
  3. Run ./build_system7.sh to rebuild.

3. Debugging

Since this is a cross-compiled OS kernel, debugging is challenging.

Testing

There is no unit test framework in the modern sense. Testing involves:

  1. Building the system.
  2. Booting the image in an emulator.
  3. Verifying behavior manually or via the MiniFinder logic.

Tools