As testing program was used Sieve of Eratosthenes program published here. Original was written in Modula. Source texts used for test are here
Times of building and running programs are expressed in "Turbo Pascal ratio", where times for TP are 1.0. This is used to eliminate hardware (CPU speed etc.).
Turbo Pascal 3.01
DX-Forth 4.57
HI-TECH C 3.09
Microsoft BASIC-80 5.21
Z80ASM 1.32 + SLRNK 1.31
| Compiler | Build time["TP ratio"] | Run time ["TP ratio"] | COM size [kB/rec] |
|---|---|---|---|
| Pascal | 1.0 | 1.0 | 8.38 /67 |
| Forth | 1.3 | 3.8 | 6.75 /54 |
| C | 14.3 | 1.6 | 4.75 /38 |
| Basic | - | 61.2 | - |
| Assembler | 3.3 | 0.4 | 0.38 / 3 |