CompuServe Messages

"C" users read Pascal?

#: 6433 S1/C ChestForum unknown
    08-Sep-86 23:52:10
Fm: Tom Cattrall 72767,622
To: john stanley 73765,1026

This message turned up in search, but its forum couldn’t be identified from the original transcript, so it may not be linked into its thread.

Jhon– Thanks for the numbers, and what a surprise! I was sure that the 4/2 count from VAX Fortran was the best possible but Ultrix C does it in 3 total, 2 in the loop. Amazing! I've updated the VAX list to include the new best counts and include the current list here. The 8086 people aren't coming through with any results. I would have expected a large mass of 808x C compiler results if nothing else. Tom code is: n:= 100; FOR i:= 1 TO n DO a[i]i]:= b[i] + c[i]; The counts are only for the FOR loop and are # machine instructions used. Results shown as fraction: (actual achieved by compiler) / (best possible) . CPU Total Code Loop Code Compiler 68000 27 / 6 = 450% 20 / 4 = 500% TDI MOSYS Modula-2 68000 27 / 6 = 450% 20 / 4 = 500% TDI Amiga Modula-2 68000 13 / 6 = 217% 9 / 4 = 225% Green Hills optimize on 68000 22 / 6 = 367% 21 / 4 = 525% Green Hills optimize off 68000 26 / 6 = 433% 24 / 4 = 600% UCSD Pascal Native code VAX 4 / 3 = 133% 2 / 2 = 100% VAX VMS Fortran 4.3 VAX 6 / 3 = 200% 2 / 2 = 100% VAX VMS ePascal v2.1 VAX 6 / 3 = 200% 3 / 2 = 150% Ultrix Fortran VAX 6 / 3 = 200% 2 / 2 = 100% VAX 11 C VAX 3 / 3 = 100% 2 / 2 = 100% Ultrix C HP A900 21 / 12 = 175% 14 / 7 = 200% HP Fortran 77 8086 25 / 9 = 278% 19 / 4 = 475% Logitech Modula-2 v2.00 8086 13 / 9 = 144% 10 / 4 = 250% Aztec C 8086 10 / 9 = 111% 9 / 4 = 225% Microsoft C optimize on 8086 13 / 9 = 144% 12 / 4 = 300% Microsoft C optimize off Prime 13 / ? = ? 10 / ? = ? Prime Fortran Z80 64 / ? = ? 48 / ? = ? Turbo Pascal