Re: Free UNIX for non-commerical use.

From: Andrew Gabriel (andrew_at_cucumber.demon.co.uk)
Date: 07/29/03


Date: 29 Jul 2003 09:01:31 GMT

In article <bg38em$4lh$00$1@news.t-online.com>,
        "Uli Link" <Ulrich--nO--(dot)-sPAM--Link@Epost.de> writes:
>
>> 1) In the case of games manufacturers, they would indeed loose revenue
>> if they allowed everyone to copy their games. I don't think this is so
>> with UNIX operating systems and compilers. There are not than many
>> home users going to pay more than $1000 on a compiler. They will
>> likely use gcc instead and have to accept the poorer performance.
>
> Don't agree: the optimization of the GCC has become much better:
> in 9 out of 10 times the GCC produces faster binaries than vendor compilers

I benchmarked it against Sun's compilers probably every couple of
years since 1995, and Sun's compilers have always produced faster code,
typically by 10% - 15% on both sparc and x86 in program runtime.
Obviously will depend on the nature of the program -- something i/o
bound isn't going to notice much, whereas something CPU bound might
see even bigger differences than I did.

I also benchmarked it against DEC's OSF/1 compiler many years ago,
and GCC lost out big time to that, but that was probably around 1995/6
and I haven't done that test again since then.

My attempts to benchmark on 88k failed because the GCC optimiser was
simply too broken to produce usable code on 88k. In any case, I had
nothing to compare with as the two 88k system vendors I knew, Motorola
and DG, both shipped (broken) GCC as their native compiler anyway.
(Maybe no one ever wrote any other C compiler for the 88k?)
Again, this is going back to, probably, 1998.

-- 
Andrew Gabriel
Consultant Software Engineer


Relevant Pages

  • Re: Whats the story with the "end of XP"?
    ... Support gives them access to the larger body ... The same compiler suite may be "best" in both ... In the case of ByteCraft compilers, you are truly expert in your field, you work closely and rapidly with customers if there are any issues, and you have top class testing and quality control. ... understanding the inner workings of a relatively simple compiler like GCC ...
    (comp.arch.embedded)
  • [RFC][PATCH-2.6] Clean up and merge compiler-*.h
    ... the kernel headers in include/linux to include/linux-abi. ... * Common definitions for all gcc versions go here. ... -/* Some compiler specific definitions are overwritten here ...
    (Linux-Kernel)
  • Re: LPC900/80C51 Compiler Toolchain
    ... >> supported by GCC, and so they invest. ... > if they already have their in-house compiler. ... one of the main companies in the Symbian consortium ... vendor to provide a good compiler for Atmel AVRs and eventually became ...
    (comp.arch.embedded)
  • Re: FreeBSD 7.1 BETA 2 vs Opensolaris vs Ubuntu performance
    ... If you want to test OS performance and use Java programs in there to do so, you would use the same Java version, wouldn't you? ... If you want to run number crunching software, you are interested in high computing throughput of your app, so you use a compiler which performs best for your code in question (which would mean probably the Intel compiler or the Portland compiler on Linux, maybe the Sun compiler on Solaris, and probably gcc on FreeBSD). ... The "benchmark" presented there is flawed in a lot of ways. ...
    (freebsd-performance)
  • Re: CPU speed
    ... >>trivial and dependant on the quality and optimization of the C compiler. ... OK, the benchmark is bad, but it's not enough ... > I suggested -O2 and volatile int cnt so that the gcc effects on different ... here is that C program compiled with gcc 3.3.2 ...
    (comp.unix.solaris)