[Simh] anyone know how to convert/translate turbo pascal to vax pascal?

Gary Lee Phillips tivo.overo at gmail.com
Thu Feb 8 07:51:43 EST 2018


VMS Pascal conforms to the language standards. So does Turbo Pascal, if the
code is written to standard.

The problem with porting in Pascal comes when language extensions are used.
These are often proprietary and/or hardware specific. On OpenVMS much of
the extended capability depends on calling system libraries, all of which
are supported. Turbo Pascal was designed specifically for the IBM PC and
"compatible" systems, and contains a lot of proprietary extensions that
will not be recognized by VMS Pascal's compiler.

If your code depends on graphic functions, the ones in Turbo Pascal are
almost entirely peculiar to that environment and will require a lot of
rewriting. These use custom libraries that come with the compiler, and
probably most can be duplicated by using OpenVMS system calls in some
format. Some analysis will be required to identify the hardware specific
code and select appropriate substitutions.

As for "free pascal" there are several incompatible implementations that go
by the name, so I'm not sure what you have used. However, all of them
pretty much support the original language definition and code that stays
within that standard definition will work without translation. Extensions
that use library calls or custom units are going to be the area that
requires (possibly a lot of) work.

The full VMS Pascal manuals are available in PDF form online and you should
begin there.

By the way, VMS Pascal definitely supports writeln. It also has record
structures, etc. Those are all part of the standard language definition.
We'd need to see a sample of your code that doesn't work in order to figure
out where your problem comes from.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.trailing-edge.com/pipermail/simh/attachments/20180208/382855a2/attachment.html>


More information about the Simh mailing list