www.gryphel.com/c/minivmac/appc - feedback

Compiling

Macintosh 680x0 Applications


Skip down to Compiler Index

How to compile Macintosh 680x0 applications belonging to the Gryphel Project, including many of the Mini vMac extras.

Each of these applications is released as a disk image, all of them in the same format. At the top level of the image is the compiled application and a folder named "source". The source folder contains a file named "app.c", and also other files, with names ending in ".i", that are used by "app.c". All of the source code is written in the C language, except for the Macintosh style "resources". The resources are contained only in the compiled application, there is no other original copy in the disk image.

... Compiler Index ...

MPW using Symantec C compiler

MPW using MPW C compiler

Metrowerks C/C++ 68K 1.1

Symantec C++ 6.0

MPW using Symantec C compiler

The Symantec C compiler is included in the Macintosh Programmer's Workshop 3.5 Golden Master that is still available from Apple.

To compile the Mini vMac build system, mount its disk image, and then execute these commands:

Set TheApp MnvM_bld
SC -opt space -proto strict -w 17 -b2 -mbg off "{TheApp}:source:app.c" -o "{TheApp}:app.o"
Link -rn "{TheApp}:app.o" "{Libraries}Interface.o" "{Libraries}MacRuntime.o" -o "{TheApp}:{TheApp}"
Delete "{TheApp}:app.o"

To compile other applications, replace 'MnvM_bld' in the first line.

To execute commands in MPW, enter them into the Worksheet, select them, and then press the “Enter” key. The compile is done when the cursor stops spinning.

MPW 3.5 requires a Macintosh II or later. The Mini vMac Macintosh II emulation in development works well enough to run this version of MPW.

MPW using MPW C compiler

The MPW C compiler is included in MPW 3.0 (other versions might or might not also work).

To compile the Mini vMac build system, mount its disk image, and then execute these commands:

Set TheApp MnvM_bld
C -r -b2 -mbg off "{TheApp}:source:app.c" -i "{TheApp}:source:" -o "{TheApp}:app.o"
Link -rn "{TheApp}:app.o" "{clibraries}CRuntime.o" "{clibraries}CInterface.o" "{libraries}Interface.o" -o "{TheApp}:{TheApp}"
Delete "{TheApp}:app.o"

To compile other applications, replace 'MnvM_bld' in the first line.

Metrowerks C/C++ 68K 1.1

... to be documented ...

Symantec C++ 6.0

... to be documented ...

:

If you find Mini vMac useful, please consider helping the Gryphel Project, of which it is a part.

gryphel logo, 1K

Next - Mini vMac compile time options


www.gryphel.com/c/minivmac/appc - feedback
copyright (c) 2011 Paul C. Pratt - last update 11/20/2011