Category:XPL0: Difference between revisions
m
no edit summary
m (Clarified need for 'code' declarations) |
mNo edit summary |
||
(2 intermediate revisions by one other user not shown) | |||
Line 3:
by Peter J. R. Boyle, who designed it to run on a 6502 microprocessor as
an alternative to BASIC, which was the dominant language for personal
computers at the time. XPL0 is based on [[PL/0]], an example compiler in the
book ''Algorithms + Data Structures = Programs'' by Niklaus Wirth. The first
XPL0 compiler was written in ALGOL, which was then used to create a compiler
Line 9:
XPL0 has been implemented on more than a dozen processors, but it's
currently maintained on the Raspberry Pi and IBM-type PCs. Programs run under Linux, Windows, and MS-DOS. Free, open-source versions of the
compilers (interpreted, assembly-code compiled, and optimizing) are
available from the official website: xpl0.org [http://www.xpl0.org/]. The 32-bit version of the MS-DOS compiler, XPLPX, was used for
Here's how the traditional Hello World program is coded:
Line 31:
functions.
The 32-bit versions of the compilers (as opposed to the older, 16-bit versions) automatically declare ''code'' declarations. Thus the above program can simply be
<pre>
|