---
DOS
---

I used old DJGPP 2.03p2 and GCC 2.95.3 (for no obvious advantage nor
disadvantage). It needs DPMI, but you probably already have CWSDPMI or
Japheth's HDPMI32. It's UPX'd, so it may run slower under NTVDM.

For full "standard" Pascal ISO 7185 (level 1) code, the latest DJGPP
2.05 and GCC 12.2 port should work with Trevor Blight's P5C
transpiler. The last GNU Pascal (GPC 20070904, GCC 3.4.6) is also
still hosted on DJGPP mirrors. My GPC build of P5 (ISO 7185) is
mirrored on iBiblio for FreeDOS.

----
OS/2
----

These binaries were built with classic EMX 0.9d and GCC 2.8.1 and pass
the "standard" test correctly.

If your machine has more than 1 GB of RAM, EMX.EXE may hang, so try
"set EMX=C:\PATHTO\rsx.exe" instead and load DPMI (e.g. "hdpmi32 -r"
or "cwsdpmi -p") first. You can find RSX on any DJGPP mirror in
/current/v2tk/RSXDJ151.ZIP.

I preferred this to an OS/2-only compile (using OpenWatcom) since I
don't have OS/2 and can't test that. (Arca Noae is still updated and
available for sale, though.)

-----
Win32
-----

I built it with OpenWatcom 1.9. It runs fine on Win64 systems.

It also runs in DOS under Japheth's HX (HXRT 2.19) or if stubbed
("STUBIT" using *.WDL) with WDOSX 0.97. But don't UPX it!

-----
Linux
-----

To get this to compile (statically) using OpenWatcom 1.9 under Linux:

1). export TERMINFO=/lib/terminfo
2). run the installer (it's actually just a binary with attached .ZIP)
3). export WATCOM=/tmp/watcom
4). ". owsetenv.sh"
5). add "#include <limits.h>" (in p2clib.c) before it includes p2c.h

For unknown reasons, cross-compiling from atop Windows 7 *won't* work.

However, cross-compiling atop DOS *does* work, if you ...

1). set INCLUDE=g:\watcom\lh
2). add "#include <limits.h>" (in p2clib.c) before it includes p2c.h
3). add "/l=linux" to the compiler options

For GCC instead, for PINT (only), you'll need to add "-lm" at the end.

P.S. Be careful that your "standard.{cmp,pas}" are in *nix format!
That means "unzip -a" or "dos2unix" or (in VI): ":1,$s/^V^M//"

--
rugxulo _AT_ gmail
