After my initial research I filed two bugs (35596 and 35597), decided to put graphics aside and tried getting non-graphics programs running.
And I’ve had good success so far. I’ve ported 15 so far.
The fpc compiler has various modes which includes a Turbo Pascal mode. However that’s somewhere around Turbo Pascal 7 - definitely not all the way back to version 3.01a like we were using.
This isn’t a huge stumbling block though. All it means so far is that
the run time library isn’t included by default, and that library
is broken into different units. All that’s needed is to add a USES
directive to the code and it should be fine. USES CRT
is the most
common addition but the KEYBOARD
, PRINTER
and SYSUTILS
modules
have each made a few appearances.
A short, minimal example is a program clearly written to learn recursion:
|
|
All I had to add to that was USES CRT
.
The graphics side still looks to be complicated with most examples assuming I’m using the GUI IDE Lazarus.