uvmac/docs/appc/index.html

1 line
4.3 KiB
HTML
Raw Normal View History

2020-03-14 19:28:01 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title> Compiling Macintosh 680x0 Applications </title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="canonical" href="index.html"> </head> <body> <div> <i> <a href="https://www.gryphel.com/index.html">www.gryphel.com</a>/c/<a href="../index.html">minivmac</a>/appc - <a href="https://www.gryphel.com/c/feedback.html">feedback</a> </i> </div> <hr> <h3 align=center> Compiling </h3> <h3 align=center> Macintosh 680x0 Applications </h3> <hr> <p> <a href="index.html#in">Skip down to Compiler Index</a> </p> <p> How to compile Macintosh 680x0 applications belonging to the <a href="https://www.gryphel.com/index.html">Gryphel Project</a>, including many of the <a href="../extras/index.html">Mini vMac extras</a>. </p> <p> 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. </p> <h4> <a name="in"> ... Compiler Index ... </a> </h4> <p> <a href="index.html#mpw_sc">MPW using Symantec C compiler</a> </p> <p> <a href="index.html#mpw_c">MPW using MPW C compiler</a> </p> <p> <a href="index.html#mw">Metrowerks C/C++ 68K 1.1</a> </p> <p> <a href="index.html#symc">Symantec C++ 6.0</a> </p> <p> <b> <a name="mpw_sc"> MPW using Symantec C compiler </a> </b> </p> <p> The Symantec C compiler is included in the <a href="https://en.wikipedia.org/wiki/Macintosh_Programmers_Workshop">Macintosh Programmer's Workshop</a> 3.5 Golden Master that is still <a href="ftp://ftp.apple.com/developer/Tool_Chest/Core_Mac_OS_Tools/MPW_etc./MPW-GM_Images/MPW-GM.img.bin">available</a> from Apple. </p> <p> To compile the Mini vMac build system, mount its disk image, and then execute these commands: </p> <pre> 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" </pre> <p> To compile other applications, replace 'MnvM_bld' in the first line. </p> <p> To execute commands in MPW, enter them into the Worksheet, select them, and then press the &ldquo;Enter&rdquo; key. The compile is done when the cursor stops spinning. </p> <p> 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. </p> <p> <b> <a name="mpw_c"> MPW using MPW C compiler </a> </b> </p> <p> The MPW C compiler is included in MPW 3.0 (other versions might or might not also work). </p> <p> To compile the Mini vMac build system, mount its disk image, and then execute these commands: </p> <pre> 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" </pre> <p> To compile other applications, replace 'MnvM_bld' in the first line. </p> <p> <b> <a name="mw"> Metrowerks C/C++ 68K 1.1 </a> </b> </p> <p> ... to be documented ... </p> <p> <b> <a name="symc"> Symantec C++ 6.0 </a> </b> </p> <p> ... to be documented ... </p> <p> : </p> <p> If you find Mini vMac useful, please consider <a href="https://www.gryphel.com/c/help/index.html">helping the Gryphel Project</A>, of which it is a part. </p> <a href="https://www.gryphel.com/index.html"> <img src="https://www.gryphel.com/d/gryphel-32.gif" width=32 height=32 border=0 alt="gryphel logo, 1K" > </a> <p> Next - <b><a href="../options.html">Mini vMac c