Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. A tale of two compilers

A tale of two compilers

Scheduled Pinned Locked Moved The Lounge
csharpc++visual-studiocom
27 Posts 14 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Phil Harding
    wrote on last edited by
    #1

    Recently I've been doing some cross platform development for a client on Windows, Linux and Solaris. So the code is pretty plain vanilla with (lots of) splashings of boost and stl. The point of the app is to process and report on transactions each night, and there are in the order of millions of transactions to process each night - so speed was of the escence. For Win32 I chose the good old VS.NET 2003 compiler, and for *nix I chose GCC. I also downloaded CodeBlocks (with GCC 3.4.4) on Win32 to do the port work. My point, and I'm getting there slowly I know :doh:, was the difference produced by the compilers speed optimisations. So basically I set the compilers speed optimisations "full on" without any preference for processor affinity and the difference was quite surprising; - GCC on Win32 produced release code about 10x as large as VS.NET but which executed 1/3rd faster!! - A GCC build on *nix ran pretty much the same speed (in tx throughput) as GCC on Win32, showing an improvement (on *nix) of around 10% The tests were done on the same hardware, using the same test data, all extraneous processes shutdown etc. I didn't do whole program optimisation in VS.NET, not sure if that would have made much difference. I guess there's a lot of optimisations GCC does but VS.NET doesn't, GCC certainly has enough switches for speed optimisations :) Phil Harding.
    myBlog [^]  |  mySite [^]

    C C S J A 11 Replies Last reply
    0
    • P Phil Harding

      Recently I've been doing some cross platform development for a client on Windows, Linux and Solaris. So the code is pretty plain vanilla with (lots of) splashings of boost and stl. The point of the app is to process and report on transactions each night, and there are in the order of millions of transactions to process each night - so speed was of the escence. For Win32 I chose the good old VS.NET 2003 compiler, and for *nix I chose GCC. I also downloaded CodeBlocks (with GCC 3.4.4) on Win32 to do the port work. My point, and I'm getting there slowly I know :doh:, was the difference produced by the compilers speed optimisations. So basically I set the compilers speed optimisations "full on" without any preference for processor affinity and the difference was quite surprising; - GCC on Win32 produced release code about 10x as large as VS.NET but which executed 1/3rd faster!! - A GCC build on *nix ran pretty much the same speed (in tx throughput) as GCC on Win32, showing an improvement (on *nix) of around 10% The tests were done on the same hardware, using the same test data, all extraneous processes shutdown etc. I didn't do whole program optimisation in VS.NET, not sure if that would have made much difference. I guess there's a lot of optimisations GCC does but VS.NET doesn't, GCC certainly has enough switches for speed optimisations :) Phil Harding.
      myBlog [^]  |  mySite [^]

      C Offline
      C Offline
      Chris Maunder
      wrote on last edited by
      #2

      I'd be interested in what you could acheive by tweaking the VC++ compiler. I'd be even more interested in how the VC8 compiler goes... cheers, Chris Maunder

      CodeProject.com : C++ MVP

      1 Reply Last reply
      0
      • P Phil Harding

        Recently I've been doing some cross platform development for a client on Windows, Linux and Solaris. So the code is pretty plain vanilla with (lots of) splashings of boost and stl. The point of the app is to process and report on transactions each night, and there are in the order of millions of transactions to process each night - so speed was of the escence. For Win32 I chose the good old VS.NET 2003 compiler, and for *nix I chose GCC. I also downloaded CodeBlocks (with GCC 3.4.4) on Win32 to do the port work. My point, and I'm getting there slowly I know :doh:, was the difference produced by the compilers speed optimisations. So basically I set the compilers speed optimisations "full on" without any preference for processor affinity and the difference was quite surprising; - GCC on Win32 produced release code about 10x as large as VS.NET but which executed 1/3rd faster!! - A GCC build on *nix ran pretty much the same speed (in tx throughput) as GCC on Win32, showing an improvement (on *nix) of around 10% The tests were done on the same hardware, using the same test data, all extraneous processes shutdown etc. I didn't do whole program optimisation in VS.NET, not sure if that would have made much difference. I guess there's a lot of optimisations GCC does but VS.NET doesn't, GCC certainly has enough switches for speed optimisations :) Phil Harding.
        myBlog [^]  |  mySite [^]

        C Offline
        C Offline
        code frog 0
        wrote on last edited by
        #3

        I gave you a pull-up 5 to counter the drive-by 1 Vote stupidity that can exist on this site at times. Personally, I find stuff like this pretty interesting so I'm always glad to see it and especially the *intelligent* conversation that it *usually* stimulates. - Rex

        I only read CP for the articles. Code-frog System Architects, Inc.

        C 1 Reply Last reply
        0
        • P Phil Harding

          Recently I've been doing some cross platform development for a client on Windows, Linux and Solaris. So the code is pretty plain vanilla with (lots of) splashings of boost and stl. The point of the app is to process and report on transactions each night, and there are in the order of millions of transactions to process each night - so speed was of the escence. For Win32 I chose the good old VS.NET 2003 compiler, and for *nix I chose GCC. I also downloaded CodeBlocks (with GCC 3.4.4) on Win32 to do the port work. My point, and I'm getting there slowly I know :doh:, was the difference produced by the compilers speed optimisations. So basically I set the compilers speed optimisations "full on" without any preference for processor affinity and the difference was quite surprising; - GCC on Win32 produced release code about 10x as large as VS.NET but which executed 1/3rd faster!! - A GCC build on *nix ran pretty much the same speed (in tx throughput) as GCC on Win32, showing an improvement (on *nix) of around 10% The tests were done on the same hardware, using the same test data, all extraneous processes shutdown etc. I didn't do whole program optimisation in VS.NET, not sure if that would have made much difference. I guess there's a lot of optimisations GCC does but VS.NET doesn't, GCC certainly has enough switches for speed optimisations :) Phil Harding.
          myBlog [^]  |  mySite [^]

          S Offline
          S Offline
          Shog9 0
          wrote on last edited by
          #4

          Phil Harding wrote:

          - GCC on Win32 produced release code about 10x as large as VS.NET but which executed 1/3rd faster!! - A GCC build on *nix ran pretty much the same speed (in tx throughput) as GCC on Win32, showing an improvement (on *nix) of around 10%

          Good stuff, Phil - thanks for sharing. This is doubly interesting because of how much GCC usually gets dumped on in benchmark tests. Just goes to show how much the real world can deviate. Would love to see how much the results differ when using whole program optimization.

          Now taking suggestions for the next release of CPhog...

          P 1 Reply Last reply
          0
          • C code frog 0

            I gave you a pull-up 5 to counter the drive-by 1 Vote stupidity that can exist on this site at times. Personally, I find stuff like this pretty interesting so I'm always glad to see it and especially the *intelligent* conversation that it *usually* stimulates. - Rex

            I only read CP for the articles. Code-frog System Architects, Inc.

            C Offline
            C Offline
            Colin Angus Mackay
            wrote on last edited by
            #5

            code-frog wrote:

            I gave you a pull-up 5 to counter the drive-by 1 Vote stupidity that can exist on this site at times.

            That can get really annoying. I posted a message a few days ago asking if anyone had seen a fantastic nature documentary programme on the BBC (using high-definition pictures and new video camera techniques) and I got two 1-votes. I could only guess that the sight of seeing polar bear cubs playing in the snow or elephants migrating across the African planes was offensive to some. ColinMackay.net Scottish Developers are looking for speakers for user group sessions over the next few months. Do you want to know more?

            V J C C 4 Replies Last reply
            0
            • C Colin Angus Mackay

              code-frog wrote:

              I gave you a pull-up 5 to counter the drive-by 1 Vote stupidity that can exist on this site at times.

              That can get really annoying. I posted a message a few days ago asking if anyone had seen a fantastic nature documentary programme on the BBC (using high-definition pictures and new video camera techniques) and I got two 1-votes. I could only guess that the sight of seeing polar bear cubs playing in the snow or elephants migrating across the African planes was offensive to some. ColinMackay.net Scottish Developers are looking for speakers for user group sessions over the next few months. Do you want to know more?

              V Offline
              V Offline
              Vivi Chellappa
              wrote on last edited by
              #6

              I don't know that you have to watch Nature on TV. Nature is in plain sight wherever you turn. A couple of nights back, I saw this gecko on the wall attempting to catch a moth, missing it and then succeeding the next time when the moth came near the electric light again. I was thinking to myself that I should have videotaped the whole thing and sent it off to BBC or PBS (in the US). Now clearly geckos are not common in England or the US so it should be fascinating to watch!

              C 1 Reply Last reply
              0
              • P Phil Harding

                Recently I've been doing some cross platform development for a client on Windows, Linux and Solaris. So the code is pretty plain vanilla with (lots of) splashings of boost and stl. The point of the app is to process and report on transactions each night, and there are in the order of millions of transactions to process each night - so speed was of the escence. For Win32 I chose the good old VS.NET 2003 compiler, and for *nix I chose GCC. I also downloaded CodeBlocks (with GCC 3.4.4) on Win32 to do the port work. My point, and I'm getting there slowly I know :doh:, was the difference produced by the compilers speed optimisations. So basically I set the compilers speed optimisations "full on" without any preference for processor affinity and the difference was quite surprising; - GCC on Win32 produced release code about 10x as large as VS.NET but which executed 1/3rd faster!! - A GCC build on *nix ran pretty much the same speed (in tx throughput) as GCC on Win32, showing an improvement (on *nix) of around 10% The tests were done on the same hardware, using the same test data, all extraneous processes shutdown etc. I didn't do whole program optimisation in VS.NET, not sure if that would have made much difference. I guess there's a lot of optimisations GCC does but VS.NET doesn't, GCC certainly has enough switches for speed optimisations :) Phil Harding.
                myBlog [^]  |  mySite [^]

                J Offline
                J Offline
                Jeremy Falcon
                wrote on last edited by
                #7

                That's neat to hear. Out of curiosity though was this the plain old vanilla gcc or the one of the optimized versions (note, they can appear the same) with favoritism towards a CPU (for instance, the Pentium optimized gcc)? If that's the case, what kinda comparability would you get if you optimized VS8 for the Pentium CPU (is there a way for that?) and tried again? I'm not a Microsoftie at all (Unix nut and proud of it); I just want to make sure we're comparing apples to apples. Jeremy Falcon

                P 1 Reply Last reply
                0
                • C Colin Angus Mackay

                  code-frog wrote:

                  I gave you a pull-up 5 to counter the drive-by 1 Vote stupidity that can exist on this site at times.

                  That can get really annoying. I posted a message a few days ago asking if anyone had seen a fantastic nature documentary programme on the BBC (using high-definition pictures and new video camera techniques) and I got two 1-votes. I could only guess that the sight of seeing polar bear cubs playing in the snow or elephants migrating across the African planes was offensive to some. ColinMackay.net Scottish Developers are looking for speakers for user group sessions over the next few months. Do you want to know more?

                  J Offline
                  J Offline
                  Jeremy Falcon
                  wrote on last edited by
                  #8

                  It gets even better, talking about down voting makes you childish and silly. :rolleyes: I'm not calling you that Colin. It's a long story, but I'm sure some will get it. Jeremy Falcon

                  1 Reply Last reply
                  0
                  • C Colin Angus Mackay

                    code-frog wrote:

                    I gave you a pull-up 5 to counter the drive-by 1 Vote stupidity that can exist on this site at times.

                    That can get really annoying. I posted a message a few days ago asking if anyone had seen a fantastic nature documentary programme on the BBC (using high-definition pictures and new video camera techniques) and I got two 1-votes. I could only guess that the sight of seeing polar bear cubs playing in the snow or elephants migrating across the African planes was offensive to some. ColinMackay.net Scottish Developers are looking for speakers for user group sessions over the next few months. Do you want to know more?

                    C Offline
                    C Offline
                    Chris Maunder
                    wrote on last edited by
                    #9

                    Colin Angus Mackay wrote:

                    That can get really annoying

                    It all balances out in the end. Sometimes. ;) cheers, Chris Maunder

                    CodeProject.com : C++ MVP

                    1 Reply Last reply
                    0
                    • P Phil Harding

                      Recently I've been doing some cross platform development for a client on Windows, Linux and Solaris. So the code is pretty plain vanilla with (lots of) splashings of boost and stl. The point of the app is to process and report on transactions each night, and there are in the order of millions of transactions to process each night - so speed was of the escence. For Win32 I chose the good old VS.NET 2003 compiler, and for *nix I chose GCC. I also downloaded CodeBlocks (with GCC 3.4.4) on Win32 to do the port work. My point, and I'm getting there slowly I know :doh:, was the difference produced by the compilers speed optimisations. So basically I set the compilers speed optimisations "full on" without any preference for processor affinity and the difference was quite surprising; - GCC on Win32 produced release code about 10x as large as VS.NET but which executed 1/3rd faster!! - A GCC build on *nix ran pretty much the same speed (in tx throughput) as GCC on Win32, showing an improvement (on *nix) of around 10% The tests were done on the same hardware, using the same test data, all extraneous processes shutdown etc. I didn't do whole program optimisation in VS.NET, not sure if that would have made much difference. I guess there's a lot of optimisations GCC does but VS.NET doesn't, GCC certainly has enough switches for speed optimisations :) Phil Harding.
                      myBlog [^]  |  mySite [^]

                      A Offline
                      A Offline
                      Andy Brummer
                      wrote on last edited by
                      #10

                      Did you optimize vs.net for size or speed? I think the default optimizations are for size which cuts down on code size and reduces things like inlining. This reduces loading time and page faults from swapping out code, but those optimizations probably don't help your app very much when data probably dominates most of the memory access.


                      I can imagine the sinking feeling one would have after ordering my book, only to find a laughably ridiculous theory with demented logic once the book arrives - Mark McCutcheon

                      P 1 Reply Last reply
                      0
                      • P Phil Harding

                        Recently I've been doing some cross platform development for a client on Windows, Linux and Solaris. So the code is pretty plain vanilla with (lots of) splashings of boost and stl. The point of the app is to process and report on transactions each night, and there are in the order of millions of transactions to process each night - so speed was of the escence. For Win32 I chose the good old VS.NET 2003 compiler, and for *nix I chose GCC. I also downloaded CodeBlocks (with GCC 3.4.4) on Win32 to do the port work. My point, and I'm getting there slowly I know :doh:, was the difference produced by the compilers speed optimisations. So basically I set the compilers speed optimisations "full on" without any preference for processor affinity and the difference was quite surprising; - GCC on Win32 produced release code about 10x as large as VS.NET but which executed 1/3rd faster!! - A GCC build on *nix ran pretty much the same speed (in tx throughput) as GCC on Win32, showing an improvement (on *nix) of around 10% The tests were done on the same hardware, using the same test data, all extraneous processes shutdown etc. I didn't do whole program optimisation in VS.NET, not sure if that would have made much difference. I guess there's a lot of optimisations GCC does but VS.NET doesn't, GCC certainly has enough switches for speed optimisations :) Phil Harding.
                        myBlog [^]  |  mySite [^]

                        J Offline
                        J Offline
                        Jim Crafton
                        wrote on last edited by
                        #11

                        So GCC code outperformed that of VC++? Damn that's news! That definitely didn't used to be the case! ¡El diablo está en mis pantalones! ¡Mire, mire! Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF!

                        1 Reply Last reply
                        0
                        • C Colin Angus Mackay

                          code-frog wrote:

                          I gave you a pull-up 5 to counter the drive-by 1 Vote stupidity that can exist on this site at times.

                          That can get really annoying. I posted a message a few days ago asking if anyone had seen a fantastic nature documentary programme on the BBC (using high-definition pictures and new video camera techniques) and I got two 1-votes. I could only guess that the sight of seeing polar bear cubs playing in the snow or elephants migrating across the African planes was offensive to some. ColinMackay.net Scottish Developers are looking for speakers for user group sessions over the next few months. Do you want to know more?

                          C Offline
                          C Offline
                          code frog 0
                          wrote on last edited by
                          #12

                          Yeah, I forget but I thought I pulled you up on that one. I try to fight injustice at every corner.:-D

                          I only read CP for the articles. Code-frog System Architects, Inc.

                          1 Reply Last reply
                          0
                          • V Vivi Chellappa

                            I don't know that you have to watch Nature on TV. Nature is in plain sight wherever you turn. A couple of nights back, I saw this gecko on the wall attempting to catch a moth, missing it and then succeeding the next time when the moth came near the electric light again. I was thinking to myself that I should have videotaped the whole thing and sent it off to BBC or PBS (in the US). Now clearly geckos are not common in England or the US so it should be fascinating to watch!

                            C Offline
                            C Offline
                            code frog 0
                            wrote on last edited by
                            #13

                            Yes! They are! Geico, Geico, Geico...:sigh: Those commercials are so annoying...:^)

                            I only read CP for the articles. Code-frog System Architects, Inc.

                            1 Reply Last reply
                            0
                            • P Phil Harding

                              Recently I've been doing some cross platform development for a client on Windows, Linux and Solaris. So the code is pretty plain vanilla with (lots of) splashings of boost and stl. The point of the app is to process and report on transactions each night, and there are in the order of millions of transactions to process each night - so speed was of the escence. For Win32 I chose the good old VS.NET 2003 compiler, and for *nix I chose GCC. I also downloaded CodeBlocks (with GCC 3.4.4) on Win32 to do the port work. My point, and I'm getting there slowly I know :doh:, was the difference produced by the compilers speed optimisations. So basically I set the compilers speed optimisations "full on" without any preference for processor affinity and the difference was quite surprising; - GCC on Win32 produced release code about 10x as large as VS.NET but which executed 1/3rd faster!! - A GCC build on *nix ran pretty much the same speed (in tx throughput) as GCC on Win32, showing an improvement (on *nix) of around 10% The tests were done on the same hardware, using the same test data, all extraneous processes shutdown etc. I didn't do whole program optimisation in VS.NET, not sure if that would have made much difference. I guess there's a lot of optimisations GCC does but VS.NET doesn't, GCC certainly has enough switches for speed optimisations :) Phil Harding.
                              myBlog [^]  |  mySite [^]

                              M Offline
                              M Offline
                              Marc Clifton
                              wrote on last edited by
                              #14

                              If you set the VS compiler for all optimizations, you're probably making it schitzo trying to figure out whether it should optimize for size or speed. Try one or the other, but not both. They tend to be mutually exclusive. And comparing optimizations between compilers without understand what each optimization does is like comparing moon dust with a fine Brie and saying they're both cheese. Marc Pensieve Functional Entanglement vs. Code Entanglement Static Classes Make For Rigid Architectures -- modified at 21:14 Thursday 9th March, 2006

                              J L P 3 Replies Last reply
                              0
                              • M Marc Clifton

                                If you set the VS compiler for all optimizations, you're probably making it schitzo trying to figure out whether it should optimize for size or speed. Try one or the other, but not both. They tend to be mutually exclusive. And comparing optimizations between compilers without understand what each optimization does is like comparing moon dust with a fine Brie and saying they're both cheese. Marc Pensieve Functional Entanglement vs. Code Entanglement Static Classes Make For Rigid Architectures -- modified at 21:14 Thursday 9th March, 2006

                                J Offline
                                J Offline
                                Jeremy Falcon
                                wrote on last edited by
                                #15

                                Marc Clifton wrote:

                                like comparing moon dust with a fine Brie and saying they're both cheese.

                                :omg: Jeremy Falcon

                                1 Reply Last reply
                                0
                                • P Phil Harding

                                  Recently I've been doing some cross platform development for a client on Windows, Linux and Solaris. So the code is pretty plain vanilla with (lots of) splashings of boost and stl. The point of the app is to process and report on transactions each night, and there are in the order of millions of transactions to process each night - so speed was of the escence. For Win32 I chose the good old VS.NET 2003 compiler, and for *nix I chose GCC. I also downloaded CodeBlocks (with GCC 3.4.4) on Win32 to do the port work. My point, and I'm getting there slowly I know :doh:, was the difference produced by the compilers speed optimisations. So basically I set the compilers speed optimisations "full on" without any preference for processor affinity and the difference was quite surprising; - GCC on Win32 produced release code about 10x as large as VS.NET but which executed 1/3rd faster!! - A GCC build on *nix ran pretty much the same speed (in tx throughput) as GCC on Win32, showing an improvement (on *nix) of around 10% The tests were done on the same hardware, using the same test data, all extraneous processes shutdown etc. I didn't do whole program optimisation in VS.NET, not sure if that would have made much difference. I guess there's a lot of optimisations GCC does but VS.NET doesn't, GCC certainly has enough switches for speed optimisations :) Phil Harding.
                                  myBlog [^]  |  mySite [^]

                                  L Offline
                                  L Offline
                                  leppie
                                  wrote on last edited by
                                  #16

                                  I have found the same, GCC produces 30% faster ASM from C code. :)

                                  xacc.ide-0.1.3.2

                                  1 Reply Last reply
                                  0
                                  • M Marc Clifton

                                    If you set the VS compiler for all optimizations, you're probably making it schitzo trying to figure out whether it should optimize for size or speed. Try one or the other, but not both. They tend to be mutually exclusive. And comparing optimizations between compilers without understand what each optimization does is like comparing moon dust with a fine Brie and saying they're both cheese. Marc Pensieve Functional Entanglement vs. Code Entanglement Static Classes Make For Rigid Architectures -- modified at 21:14 Thursday 9th March, 2006

                                    L Offline
                                    L Offline
                                    leppie
                                    wrote on last edited by
                                    #17

                                    I disagree Marc. http://userfiles.wdevs.com/leppie/gcc-1-vc7-0.gif[^] This is from plain basic C. And cygwin mind you. I will try see if I have the code and makefiles still around somewhere. I did this in 2003 for uni.

                                    xacc.ide-0.1.3.2

                                    1 Reply Last reply
                                    0
                                    • P Phil Harding

                                      Recently I've been doing some cross platform development for a client on Windows, Linux and Solaris. So the code is pretty plain vanilla with (lots of) splashings of boost and stl. The point of the app is to process and report on transactions each night, and there are in the order of millions of transactions to process each night - so speed was of the escence. For Win32 I chose the good old VS.NET 2003 compiler, and for *nix I chose GCC. I also downloaded CodeBlocks (with GCC 3.4.4) on Win32 to do the port work. My point, and I'm getting there slowly I know :doh:, was the difference produced by the compilers speed optimisations. So basically I set the compilers speed optimisations "full on" without any preference for processor affinity and the difference was quite surprising; - GCC on Win32 produced release code about 10x as large as VS.NET but which executed 1/3rd faster!! - A GCC build on *nix ran pretty much the same speed (in tx throughput) as GCC on Win32, showing an improvement (on *nix) of around 10% The tests were done on the same hardware, using the same test data, all extraneous processes shutdown etc. I didn't do whole program optimisation in VS.NET, not sure if that would have made much difference. I guess there's a lot of optimisations GCC does but VS.NET doesn't, GCC certainly has enough switches for speed optimisations :) Phil Harding.
                                      myBlog [^]  |  mySite [^]

                                      S Offline
                                      S Offline
                                      Stuart Dootson
                                      wrote on last edited by
                                      #18

                                      Phil Harding wrote:

                                      GCC on Win32 produced release code about 10x as large as VS.NET but which executed 1/3rd faster!!

                                      Didi you try stripping it (strip should be in the GCC toolset), and if so, how big was it after that ? I recently had to build an executable with Haskell[^] using GHC[^]. It compiled to 12MB, but to around 4 when stirpped...

                                      P 1 Reply Last reply
                                      0
                                      • S Shog9 0

                                        Phil Harding wrote:

                                        - GCC on Win32 produced release code about 10x as large as VS.NET but which executed 1/3rd faster!! - A GCC build on *nix ran pretty much the same speed (in tx throughput) as GCC on Win32, showing an improvement (on *nix) of around 10%

                                        Good stuff, Phil - thanks for sharing. This is doubly interesting because of how much GCC usually gets dumped on in benchmark tests. Just goes to show how much the real world can deviate. Would love to see how much the results differ when using whole program optimization.

                                        Now taking suggestions for the next release of CPhog...

                                        P Offline
                                        P Offline
                                        Phil Harding
                                        wrote on last edited by
                                        #19

                                        Shog9 wrote:

                                        Would love to see how much the results differ when using whole program optimization.

                                        I figured I should probably do it anyway, I'll let you know :) Phil Harding.
                                        myBlog [^]  |  mySite [^]

                                        1 Reply Last reply
                                        0
                                        • J Jeremy Falcon

                                          That's neat to hear. Out of curiosity though was this the plain old vanilla gcc or the one of the optimized versions (note, they can appear the same) with favoritism towards a CPU (for instance, the Pentium optimized gcc)? If that's the case, what kinda comparability would you get if you optimized VS8 for the Pentium CPU (is there a way for that?) and tried again? I'm not a Microsoftie at all (Unix nut and proud of it); I just want to make sure we're comparing apples to apples. Jeremy Falcon

                                          P Offline
                                          P Offline
                                          Phil Harding
                                          wrote on last edited by
                                          #20

                                          Jeremy Falcon wrote:

                                          Out of curiosity though was this the plain old vanilla gcc or the one of the optimized versions

                                          It was the MinGW version on Win32 and the plain old version on *nix Phil Harding.
                                          myBlog [^]  |  mySite [^]

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups