Article View: net.micro.cbm
Article #2300Speed of Oxford Pascal and C-Power
From: john13
Date: Fri, 26 Sep 1986 11:47
Date: Fri, 26 Sep 1986 11:47
27 lines
1982 bytes
1982 bytes
[]
In response to the person who asked for benchmarks for Oxford Pascal and
Proline C:
If you consider Oxford Pascal alone and do some tests (say loops doing
a few thousand adds, subtracts, or whatever) you'll see that the times
for Pascal are *exactly* the same as for Basic. Apparently they hooked
right into the Basic arithmetic functions to save memory (although from
the size of stand-alone Pascal programs, it's hard to see any signs of
memory conservation). So, even though Pascal considers an int to be so
many bits, the compiler doesn't make use of special integer arithmetic.
This alone is a big enough drawback for me not to use Pascal on the 64
for any kind of calculation; it's a silly oversight, I think, since
compiled Basic will run these things significantly faster than Pascal's
p-code.
C-Power, on the other hand, is very efficient with its calculations. I
don't know exact times, but if you need convincing, try setting up a
graphics screen and then clearing it with for (x==8192;x<16193;x++)
(*((char *)x)) = 0;. C-Power code is pure machine code, while code
generated by Pascal is run through a semi-interpreter, which is the
reason for the huge size of stand-alone Pascal programs (the interpreter
must be saved with each program).
John Russell
UUCP: {akgua,allegra,cbosgd,ihnp4,utcsri}!garfield!john13
CDNNET: john13@garfield.mun.cdn
Technical Details
Message-ID:
<2397@garfield.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utcsri!utai!garfield!john13Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 GARFIELD 20/11/84; site garfield.UUCP Path: arc1-ca.pugleaf.net!utzoo!utcsri!utai!garfield!john13 From: john13@garfield.UUCP Newsgroups: net.micro.cbm Subject: Speed of Oxford Pascal and C-Power Message-ID: <2397@garfield.UUCP> Date: Fri, 26-Sep-86 07:47:56 EDT Article-I.D.: garfield.2397 Posted: Fri Sep 26 07:47:56 1986 Date-Received: Sat, 27-Sep-86 01:42:07 EDT Sender: perry@garfield.UUCP Reply-To: john13@garfield.UUCP (John Russell) Organization: Memorial U. of Nfld. C.S. Dept., St. John's Lines: 27