Difference between revisions of "Hisoft Pascal"

From CPCWiki - THE Amstrad CPC encyclopedia!
Jump to: navigation, search
m
Line 1: Line 1:
A [[:Category:PASCAL|Pascal]] compiler from [[Hisoft]]. Two versions of this Pascal were made. Original version [[Hisoft Pascal 4T]], (Tape) aka Hisoft Pascal (Disc) was distributed through [[AMSOFT]] was designed to compile executable code and executed through [[Locomotive BASIC]] RUN"<filname>" statement. Programs produced seem to be of a good size, though files are large due to one Runtime Library (approx 5 or 6Kb) which needs to be included with Source program in order to execute the program, other languages such as Borland's "[[Turbo Pascal]]" also shared the same issues with one large library being stuck into program files.
+
A [[:Category:PASCAL|Pascal]] compiler from [[Hisoft]]. Two versions of this Pascal were made. Original version [[Hisoft Pascal 4T]], (Tape) aka Hisoft Pascal (Disc) or Hisoft Pascal 4D was distributed through [[AMSOFT]] was designed to compile executable code and executed through [[Locomotive BASIC]] RUN"<filname>" statement. Programs produced seem to be of a good size, though files are large due to one Runtime Library (approx 5 or 6Kb) which needs to be included with the binary program in order for the program to function. Other languages such as Borland's "[[Turbo Pascal]]" also shared the same thing, where a large library gets placed into generated COM files.
  
 
[[Hisoft Pascal 80]] was later released through [[Hisoft]] on Disc and operated though CP/M, though program files could be converted to run in Hisoft Pascal 4T. Hisoft Pascal 80 was written for the purpose of producing CP/M 2.2 programs and CP/M Plus programs as well as allow support to GSX.
 
[[Hisoft Pascal 80]] was later released through [[Hisoft]] on Disc and operated though CP/M, though program files could be converted to run in Hisoft Pascal 4T. Hisoft Pascal 80 was written for the purpose of producing CP/M 2.2 programs and CP/M Plus programs as well as allow support to GSX.
Line 19: Line 19:
 
== Interesting Facts ==
 
== Interesting Facts ==
  
* [[Hisoft Pascal 4T]] has a number of commands and shares a similar interface to [[Hisoft Devpac]], and Source Files saved in this compiler also appear to share the same format as those saved in [[Hisoft Devpac]] making them a pain to read in other programs/word processors/type based commands.
+
* [[Hisoft Pascal 4T]] has a number of commands and shares a similar interface to [[Hisoft Devpac]], and Source Files saved in this compiler also appear to share the same format as those saved in [[Hisoft Devpac]] making them a pain to read in other programs/word processors/type based commands. The advantage to having source files produced this way, allows coders to save memory as they are tokenised, thus allowing larger programs, just as [[Locomotive BASIC]] files are tokenised.
 
* Unlike [[Locomotive BASIC]] which uses "" (Shift+2) for passing strings, [[Hisoft Pascal 4T]] uses <nowiki>''</nowiki> (Shift+7) for passing strings, especially useful is also the support for RSX commands from the Command Line in [[Hisoft Pascal 4T]], so AMSDOS commands can be used and unlike Locomotive BASIC, a 464 doesn't need to pass strings through a variable, so a command like |era,'file.bak' will work.
 
* Unlike [[Locomotive BASIC]] which uses "" (Shift+2) for passing strings, [[Hisoft Pascal 4T]] uses <nowiki>''</nowiki> (Shift+7) for passing strings, especially useful is also the support for RSX commands from the Command Line in [[Hisoft Pascal 4T]], so AMSDOS commands can be used and unlike Locomotive BASIC, a 464 doesn't need to pass strings through a variable, so a command like |era,'file.bak' will work.
  

Revision as of 19:20, 23 April 2016

A Pascal compiler from Hisoft. Two versions of this Pascal were made. Original version Hisoft Pascal 4T, (Tape) aka Hisoft Pascal (Disc) or Hisoft Pascal 4D was distributed through AMSOFT was designed to compile executable code and executed through Locomotive BASIC RUN"<filname>" statement. Programs produced seem to be of a good size, though files are large due to one Runtime Library (approx 5 or 6Kb) which needs to be included with the binary program in order for the program to function. Other languages such as Borland's "Turbo Pascal" also shared the same thing, where a large library gets placed into generated COM files.

Hisoft Pascal 80 was later released through Hisoft on Disc and operated though CP/M, though program files could be converted to run in Hisoft Pascal 4T. Hisoft Pascal 80 was written for the purpose of producing CP/M 2.2 programs and CP/M Plus programs as well as allow support to GSX.

Reviews

HiSoft Pascal was reviewed in Amstrad Computer User ACU Issue 2, 1984, page 48. That article relates to some of the benefits gained from using Pascal Compiler and presents examples in Pascal and BASIC along with their execution times, to show how Compilers benefit over Interpreted.

A review of Hisoft Pascal was also done in Amstrad Computer User ACU Issue 11, 1985, page 21-23, by Simon Williams.

Other Material

An article to Starting Pascal was published in ACU Issue 8, 1985, pages 29-31, which included one seemly long program by David Robinson with a few Firmware Procedures to assist along with the program, though after compiling it, haven't been able to determine it's function. Turns out this program is the Hisoft Pascal 4t version of the 3D Surface Plotter, published in the October-November 1984 issue of CPC 464 User. There is a bug in this program, which causes the compiled program to Reset the Computer, but was able to resolve this by adding line:

6170        detail:=detail*10;

Likewise the BASIC Surface Details program isn't functioning correctly, so perhaps the Pascal code could be of some aid for that program.

Interesting Facts

  • Hisoft Pascal 4T has a number of commands and shares a similar interface to Hisoft Devpac, and Source Files saved in this compiler also appear to share the same format as those saved in Hisoft Devpac making them a pain to read in other programs/word processors/type based commands. The advantage to having source files produced this way, allows coders to save memory as they are tokenised, thus allowing larger programs, just as Locomotive BASIC files are tokenised.
  • Unlike Locomotive BASIC which uses "" (Shift+2) for passing strings, Hisoft Pascal 4T uses '' (Shift+7) for passing strings, especially useful is also the support for RSX commands from the Command Line in Hisoft Pascal 4T, so AMSDOS commands can be used and unlike Locomotive BASIC, a 464 doesn't need to pass strings through a variable, so a command like |era,'file.bak' will work.

Manual

Links