Re: Is There Still a Need for "Turbo" Compilers?



Jon Forrest <jlforrest@xxxxxxxxxxxx> wrote:
However, these days there aren't any "Turbo" language implementations
that I'm aware of. Is this because modern hardware is so fast that it
isn't worth developing compilers and linkers optimized for speed? By
using proper command line arguments to gcc, can you get quasi-Turbo
performance compared to using arguments that result in
highly-optimized code?

Given the amount of algorithms with non-linear complexity in an
optimizing compiler, I doubt that an optimizing compiler will ever
result in "Turbo" performance.

For a recent compiler that puts emphasis on compilation speed, have a
look at Tiny C: http://fabrice.bellard.free.fr/tcc/. It claims to
compile a 2004 Linux kernel in 10 seconds.

On the other hand, have a look at modern GCCs: in spite of all those
fancy optimizations, they keep getting slower and slower.

I agree that fast compilers seem to become a lost art, and I think
that this is unfortunate. Fast turn-around cycles are a major factor
in productivity, and you can still do the final build with an
optimizing compiler (or with optimization enabled).

I guess this is why I am using mostly interpreters these days,
but I digress.

Nils
--
Nils M Holm <nmh@xxxxxxx> -- http://t3x.org/nmh/
.



Relevant Pages

  • Re: "Sorting" assignment
    ... too slow, other times for optimizing too much, some times for being too ... That is a rather bizarre, not-quite-C compiler, but ok. ... The overlap issue is a different problem, but performing a "swap" on ... CPU hardware feature differences that can be incredibly important to ...
    (comp.programming)
  • Re: Why INFINITE loop in a thread occupy so much CPU time??
    ... measuring code quality or program efficiency. ... You stated the K&R compiler did the silly thing of testing ... In debug mode, nothing, repeat nothing, matters. ... my Ph.D. is in optimizing compiler technology. ...
    (microsoft.public.vc.mfc)
  • Re: Compiler code optimization: see code below
    ... >>I'm writing some C to be used in an embedded environment and the code ... I'm using GCC for the workstation and Diab compiler for the ... >>sure what exactly a good optimizing compiler can optimize away. ... > Neither optimization nor efficiency is defined by the C standard. ...
    (comp.lang.c)
  • Re: TextOut() to a DialogBox ???
    ... In programming, you can code for size or speed. ... are reusing code which has stack overhead. ... Back in the days when I did optimizing compilers for a living, ... the compiler is really poor at redundant ...
    (microsoft.public.vc.mfc)
  • Re: How about this syntactic candy?
    ... Unless the code in the loop is so simple that it is guaranteed that the list.Count property won't change during the execution of the loop, optimizing the expression to avoid reevaluating list.Count would be wrong. ... I once saw a demo of a for loop all compressed into one line with ingenious shortcuts and contractions, and after the optimising compiler had been through it, it generated EXACTLY the same machine code as an alternative loop written out in full. ... In that case, I could see the utility in providing the compiler with an explicit statement to that effect, but it seems to me that the current method required is so easy and simple, I can't imagine the point in adding something extra to the language to support the behavior. ...
    (microsoft.public.dotnet.languages.csharp)