[comp.sys.ibm.pc] MicroSoft/Borland, execution speed least critical

bob@imspw6.UUCP (Bob Burch) (10/10/88)

From: Eelco van Asperen :
Erasmus University EF/AIV,Rotterdam,Netherlands
 
>The results clearly show that the Microsoft compiler produces superior
>code when compared to Borland's. In a number of cases the MS-C code
>outperformed TC's by a factor of ten, for example with the TLONG and ARRAY
>tests. The good optimization in MS-C also provides some problems; since
>benchmarks are artificial and try to measure the efficiency of a
>certain type of operation, they are extremely prone to being optimized
>away, ie. reduced to no code at all.  This is shown best by the
>LOOPTST, STORAGE and TRIG programs. We definitely need a new class of
>benchmarks for future tests.
 
Borland and Microsoft are leap-frogging eachother in this regard with each
new release;  Turbo 1.5 checked out slightly faster than MSC 5.0 in the
Turbo Tech Journal's comparison, something like 16 out of 30 categories.
It would surprise me if TurboC 2.0 doesn't generate faster code than MSC
5.1 but, when you get right down to it, you will never notice any differences
in execution speed between MSC and TurboC code in 999 out of 1000 applic-
ations.  Of all of the comparison factors between the two, this one ranks
at the very bottom of my list of importance by a considerable margin over
whatever's in second-to-last place.
 
Things which are far more important would include the following:
 
1.  Borland invented the idea of selling compilers for $100 or so instead
    of $500 or $1500.  Microsoft is being forced to play a game they don't
    enjoy playing and which they would cease to play tommorrow should
    anything happen to Borland.  The loyalty issue here is pretty real.
 
2.  Bugs.  The absense of serious bugs factor favors Borland heavily.
 
3.  Compile speed / fast prototyping.  Real world programs get written
    in finite sums of time and with finite amounts of psychic energy.
    The difference between what I can accomplish with Borland's
    integrated environment (which now includes serious debugging) and
    3 second compiles versus what I might could accomplish using the
    old-fashioned system, MSC, (Quick C with it's one memory model and
    it's failure to recognize half the hardware out there is not a
    serious alternative) will show up FAR more than any minute differences
    in quality of code generation.
 
>Based on the data presented here and my experiences with both products,
>Microsoft C wins the battle; it generates by far the best code. Turbo
>C's one-pass compiler has shorter compile times and creates smaller
>executables but the code produced is inferior to MS-C's.
 
   You don't win the war by winning the least critical battle.
 
>Furthermore, when it comes to writing a reference manual for a language
>the boys (and girls) at Borland could learn something from the
>Unix-community........
 
   I like UNIX as much as the next guy and possibly more (cf. PCWeek
   letters to editor, Oct 3 issue).  But UNIX documentation???????
   Do you mean the documentation for Curses, for sockets...??????
   I am just now starting to see some more or less rexpectable UNIX
   documentation from one or two major firms such as UNISYS  (the
   red books), but the stuff I've been seeing forever is bullshit
   pure and simple, based on the notions that if it isn't arcane, it
   isn't fun, real men don't NEED documentation, etc. etc.  I hope to
   hell neither Borland Nor MicroSoft nor anyone else in the PC world
   ever learns anything at all from whoever is responsible
   for standard UNIX documentation.
 
 
I am now getting first looks at TurboC 2.0, Turbo Debugger, TASM etc. and,
from what I'm seeing, it looks like MicroSoft has a good deal of catching
up to do.
 
Ted Holden
HTE

evas@euraiv1.UUCP (Eelco van Asperen) (10/12/88)

In article <176@imspw6.UUCP>, bob@imspw6.UUCP (Bob Burch) writes:
>  
> 1.  Borland invented the idea of selling compilers for $100 or so instead
>     of $500 or $1500.  Microsoft is being forced to play a game they don't
>     enjoy playing and which they would cease to play tommorrow should
>     anything happen to Borland.  The loyalty issue here is pretty real.

The Turbo C 2.0 Professional Version lists for $250; $250 > $100 :-(

> 3.  Compile speed / fast prototyping.  Real world programs get written
>     in finite sums of time and with finite amounts of psychic energy.
>     The difference between what I can accomplish with Borland's
>     integrated environment (which now includes serious debugging) and
>     3 second compiles versus what I might could accomplish using the
>     old-fashioned system, MSC, (Quick C with it's one memory model and
>     it's failure to recognize half the hardware out there is not a
>     serious alternative) will show up FAR more than any minute differences
>     in quality of code generation.

I agree with your remark on QC. In my opinion, the real bottleneck is not
compile time; it's me, trying to figure out how to solve a problem.
With some, repeat _some_, programs TC and MSC generate code of about the
same quality; for _some_, MSC wins by a distance.
Compile speed is an important factor though and I've always liked TC
and its intergrated environment for it.
Unless TC 2.0 has much improved code generation, I will at least compile
the 'final' version of a program with MSC just to see if it does a better
job on that particular program. (I know, not everybody has or can afford
two compilers; I just happen to be in an environment that does.)

> >Furthermore, when it comes to writing a reference manual for a language
> >the boys (and girls) at Borland could learn something from the
> >Unix-community........
>  
>    I like UNIX as much as the next guy and possibly more (cf. PCWeek
>    letters to editor, Oct 3 issue).  But UNIX documentation???????
>    Do you mean the documentation for Curses, for sockets...??????

You left out the essential part of my remark; 'start each entry on
a separate page !' I was not talking about the quality of the docs,
just a gripe about their layout.

> I am now getting first looks at TurboC 2.0, Turbo Debugger, TASM etc. and,
> from what I'm seeing, it looks like MicroSoft has a good deal of catching
> up to do.

I'm looking forward to TC 2.0 and I hope I won't be disappointed.

-- 
Eelco van Asperen.		
uucp:        evas@eurtrx / mcvax!eurtrx!evas	#include <inews/filler.h>
earn/bitnet: asperen@hroeur5			#include <stdjunk.h>
"We'ld like to know a little bit about you for our files" - Mrs.Robinson,	 Simon & Garfunkel