Re: How does compare gcc to VS C++ ?

From: Jason Bowen (no_at_spam.net)
Date: 08/12/04


Date: Thu, 12 Aug 2004 10:00:35 -0600

John-Paul Stewart wrote:
> Jason Bowen wrote:
>
>> John-Paul Stewart wrote:
>>
>>> Jason Bowen wrote:
>>>
>>>> John-Paul Stewart wrote:
>>>>
>>>>>
>>>>> Then explain to me how you can be certain the observed performance
>>>>> difference can be attributed solely to code generation.
>>>>
>>>>
>>>> It's easy. A compiler can base it's code generation off of a
>>>> target. The knowledge of the target of the compiler builder can
>>>> vary. A compiler can be smart enough to know how to order
>>>> instructions better to enhance cache access or minimize latency
>>>> between instructions based on how long it takes a particular
>>>> instruction to complete.
>>>
>>>
>>> So you're not talking about an *observed* performance difference
>>> based on running the generated code. You're talking about a
>>> *calculated* performance difference based on reading the generated
>>> code and calculating latencies, etc. Correct?
>>
>>
>> I was never comparing an executable running under Windows to one
>> running under Linux. I was talking about the difference in code
>> generated by a couple of compilers. I'm thinking in terms of flat x86
>> instructions.
>
>
> That's all well and good if all you care about is theoretical
> performance, but real-word performance is influenced by far more factors
> than this one. And that's been my point all along.

The intial question was about compilers. It wasn't specific and poorly
asked but it can be a valid question to directly compare the compilers.
  You're right about real-world performance but in the real world
Windows isn't the abomination that everybody always wants to make it out
to be. I run 2000 for work because I had 4 blue screens in XP in a
year. I've never had 2000 die on me, not an exageration nor does it
invalidate any problems others may have had. The last time I had Linux
crash on me was circa 1997 running a 1.2.13 kernel. All my consoles
went zombie on me and I had to manually power the machine off. I'll go
with one crash in 7 years :-).



Relevant Pages

  • Re: concurrency, threads and objects
    ... That means windows can only create 400 threads in 2 seconds, compared to linux 2.6 which creates 100,000 threads in 2 seconds. ... We are, though, comparing c thread calls to java thread calls, even though java threads are native threads on both windows and linux in java 5.0 ...
    (comp.lang.java.programmer)
  • Re: linux noob
    ... If you really want to see the difference, install Windows and your favorite Linux distro with the same relative functionality on some lesser hardware and you won't need a stopwatch to see how much more responsive the Windows GUI is. ... There is a major difference between say microsoft and linux, in microsoft the graphical interface is built into the kernel, while in linux and many other unix like OS:es it lies as an application ontop of the kernel and of course you have the option of using different window managers, the more bloated, the slower things will be, while a light window manager like twm will be quite fast and memory economical. ... But the important thing when comparing, is to compare things that does things the same way, comparing a linux program that does things correctly with a microsoft program that takes all the possible shortcuts will always give a misleading result, it would be as comparing a linux ls that is made to only list 10 files per directory with microsoft dir and list a directory with 10000 files, which one do you think would be fastest? ...
    (alt.linux)
  • Re: I am finding this Linux a lot of bother.
    ... and as part of the class I introduce students to Linux. ... involve comparing Windows XP to Linux and DOS. ... I've taught all sorts of classes in all sorts of applications areas and HTML ...
    (alt.os.linux.suse)
  • Re: Video editing in Linux?
    ... > major deal settler whether i can set file and print quotas. ... So why bullshit about adminning a windows box then? ... you're comparing a ferrari to a clapped out mini. ... I've have about 7 years of experience with win AND linux. ...
    (alt.linux)
  • Re: Future of IT in Lebanon
    ... working knowledge of Indian programmers DNA, nor of their intuitive Java ... > So Longhorn is not an experiment and Linux is an experiment? ... another chapter in the Windows story, and the Microsoft marketing machine is ... > application opens, Check the about, it says Microsoft Visual Basic 6.3. ...
    (soc.culture.lebanon)