comp.lang.ada
 help / color / mirror / Atom feed
* KDF9 Pascal, thanks to Ada
@ 2024-07-02  0:27 moi
  0 siblings, 0 replies; only message in thread
From: moi @ 2024-07-02  0:27 UTC (permalink / raw)


Some time ago it occurred to me that the best way to illustrate the 
remarkable architecture of the EE KDF9 would be to write a 
cross-compiler that generates idiomatic KDF9 Usercode (assembly 
language) and displays it in association with the source code.

I chose Pascal as the source language, having compiler texts available 
for retargetting.

PASKAL, which implements a large subset of Pascal, is now available.

The only parts of Pascal not implemented are file types and packed 
types, including the 'text' type, which means that there is no Standard 
Pascal I/O. However, I provide some basic KDF9-oriented output routines 
as a stopgap. They are more than adequate to show the correct execution 
of, for example, the Whetstone Benchmark, and many other classic codes, 
such as Quicksort.

PASKAL is written in Pascal, using the fpc compiler, and in Ada 2012,
and is included with V11.2c of ee9, my KDF9 emulator (also in Ada 2012).

Included with it are the following documents:

* PASKAL: Users' Guide
* PASKAL: Object Program Structure.
* PASKAL: Implementation Overview

Compiled binaries are available for:

* Apple Silicon Macs
* Intel Macs
* 64-bit Intel (Debian Bookworm) Linux
* 64-bit Rapberry Pi (Debian Bookworm) OS

The Intel Linux binary should run under WSL on MS Windows 10 or 11.

Get your copy here:
    <http://www.findlayw.plus.com/KDF9/#PSK>

There is a direct link there to the Users' Guide. It includes an example 
of a complete Pascal program and the corresponding KDF9 Usercode, should 
that be the extent of your interest.

Enjoy.

-- 
Bill F.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-07-02  0:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-02  0:27 KDF9 Pascal, thanks to Ada moi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox