Post by Bob Martin Post by Jon Elson
Geez, anybody still program in Pascal? I just overhauled one of
my old programs written in Turbo Pascal in 1996 or so, and migrated
it to Linux, using the new "free pascal compiler" which was apparently
designed for this purpose. Works great for porting complex programs,
but I wouldn't create any major new work in Pascal.
I still program in Pascal, have done since Turbo Pascal 3.
I use Free Pascal now, and programs written for the PC (Linux) compile
and run on the Raspberry Pi without change (I have 5 RPis).
I converted some programs using the p2c translator, and while it worked,
it generated some pretty UGLY code. That was before 2000. fpc is
quite impressive. The only weak spot might be the interface to gdb,
and maybe they will improve that. I converted a major project with
fpc recently, and was VERY impressed. It would have taken months
to translate to c by hand, it used the set feature of Pascal in a few
places, and I wasn't clear on how to do that in c. I cleaned up a
number of messy spots in the original code while making it compatible
with fpc, and it only took me a couple days to have the program completely
I haven't decided on whether I might actually create anything new using
fpc, but it is at least now possible.