Comparison of compilers


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.).

Used compilers

Pascal

Turbo Pascal 3.01

Forth

DX-Forth 4.57

C

HI-TECH C 3.09

Basic

Microsoft BASIC-80 5.21

Assembler

Z80ASM 1.32 + SLRNK 1.31

Used computer

SC126 (Z180 at 18.4 MHz), SD card, CP/M 3 (ZPM3)

Results

CompilerBuild time["TP ratio"]Run time ["TP ratio"]COM size [kB/rec]
Pascal1.01.08.38 /67
Forth1.33.86.75 /54
C14.31.64.75 /38
Basic-61.2-
Assembler3.30.40.38 / 3

Back to main page