1
Welcome to Free Pascal for MPW on classic Mac OS
2
================================================
4
Please also read the general README file.
8
Free Pascal for MPW is still considered beta quality and a lot of things
9
are still missing. However ordinary programs should be able to compile. And
10
the compiler can compile itself.
12
Things which is not included: unit SysUtils and its dependants
15
For documentation, please download separate.
20
1. If you do not have MPW, please install MPW first.
21
MPW can be downloaded for free from Apple, see web page:
22
http://developer.apple.com/tools/mpw-tools/
24
ftp://ftp.apple.com/developer/Tool_Chest/Core_Mac_OS_Tools/MPW_etc./
25
It is then recommended that you upgrade to MPW Shell 3.6b1.
27
2. Double click the file "INSTALL". This will launch an
28
install script (via the ToolServer application, which is
29
included in the MPW installation).
31
3. If it is the first time you install Free Pascal,
32
the install script will ask where you want to create the
35
4. The installer will copy necessary files to the
36
FreePascal folder, create an fpc.cfg file,
37
and also add a startup script in
38
the Startup Items folder in the MPW folder.
46
1. The FreePascal folder in a nice place.
48
2. A file "FPC Startup" in "Startup Items" in MPW.
50
3. An entry in "FPC Startup" which sets the environment variable FPCDIR
51
to point to the FreePascal folder.
53
4. An entry in "FPC Startup" which adds the :FreePascal:bin folder to
54
the Commando search path.
56
5. A fpc.cfg file in :FreePascal:bin, with among others, a path to
57
the runtime library (rtl).
62
1. Delete the FreePascal folder.
64
2. Delete the file "FPC Startup" from the folder "Startup Items" in MPW
70
* Usage, in short: To compile e. g. hello.pp, in MPW type:
72
And press ENTER. Done.
74
* If you want to compile large programs, and in particular the rtl
75
or the compiler itself, please increase the memory setting of
76
MPW to 50 MB and ToolServer to 30 MB.
78
* Note that unit Sysutils.pp is not yet ported to MacOS, thus units
79
dependant on Sysutils.pp does neither work.
81
* To invoke the compiler you can either use the command 'ppcppc' or 'fpc'.
82
Fpc is a wrapper script which simply call 'ppcppc'
84
* Use mac style search path's.
86
* Limited debugging with Power Mac Debugger can be done. To enable this,
87
compile the program with the -g switch. Then debugging at source level,
88
with stepping etc, can be done. However variables cannot be inspected.
93
FreePascal for MPW is an MPW tool. When FreePascal wants to assemble
94
and link, it calls PPCAsm and PPCLink, via ToolServer.
99
www.freepascal.org/fpcmac.html
101
http://www.freepascal.org/wiki/index.php/Target_MacOS
103
http://www.freepascal.org/wiki/index.php/Mode_MacPas