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. Why I still use vc6

Why I still use vc6

Scheduled Pinned Locked Moved The Lounge
performancecomalgorithms
59 Posts 34 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.
  • J Jim Crafton

    Paul Sanders (AlpineSoft) wrote:

    Yes, I too would like to know what source code generated these statistics.

    RCChineseDict.cpp[^] It's modeled after an article by Raymond Chen here: Loading the dictionary, part 1: Starting point[^] I was curious to see how the VCF would fare compared to Raymond's attempts. That's where the numbers come from.

    ¡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! VCF Blog

    P Offline
    P Offline
    Paul Sanders the other one
    wrote on last edited by
    #40

    FWIW, it looks like overhead in the implementation of STL strings, rather than poor compiler optimisation. This is (to me) useful to know. Thx for posting.

    Paul Sanders http://www.alpinesoft.co.uk

    J 1 Reply Last reply
    0
    • P Paul Sanders the other one

      FWIW, it looks like overhead in the implementation of STL strings, rather than poor compiler optimisation. This is (to me) useful to know. Thx for posting.

      Paul Sanders http://www.alpinesoft.co.uk

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

      Perhaps but I consider that all part of the product. It's not like I can just take the STL from VC6 and use it in VC9. So if their standard C++ components (i.e. the STL) is sucky, then, to me at least, the effect is just the same - an app that runs at half speed :(

      ¡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! VCF Blog

      P 1 Reply Last reply
      0
      • J Jim Crafton

        Perhaps but I consider that all part of the product. It's not like I can just take the STL from VC6 and use it in VC9. So if their standard C++ components (i.e. the STL) is sucky, then, to me at least, the effect is just the same - an app that runs at half speed :(

        ¡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! VCF Blog

        P Offline
        P Offline
        Paul Sanders the other one
        wrote on last edited by
        #42

        That's very true.

        Paul Sanders http://www.alpinesoft.co.uk

        1 Reply Last reply
        0
        • J Jim Crafton

          People often accuse those still using VC6 as holdouts, dinosaurs, or too lazy to embrace the new. Well in my case it's none of those. I'm still using VC 6 because Microsoft can't seem to produce a compiler that produces faster binaries!!! Same codebase, same machine: vc6 - Took 0.17346851 seconds or 173.4685 milliseconds vc80 binaries default optimization settings Took 0.54633341 seconds or 546.3334 milliseconds vc80, turned on favor speed optimization settings Took 0.32663722 seconds or 326.6372 milliseconds vc90 binaries default optimization settings Took 0.34099583 seconds or 340.9958 milliseconds vc90, turned on favor speed optimization settings Took 0.33104513 seconds or 331.0451 milliseconds So, after nearly a 10 year wait between the releases of VC 6 (1998) and VC 9 (2007) my program runs twice as slow. Sigh...

          ¡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! VCF Blog

          L Offline
          L Offline
          l_d_allan
          wrote on last edited by
          #43

          A nice thing about vc6 (among many others) is that it generates MFC code that only assumes mfc42.dll ... which has been part of the standard install since Win98-First-Edition (Win95 had mfc40.dll) You can link dynamically for really small executables and be confident that mfc42.dll will be present on 99% of the computers that will use your software (and many with Win95 will have picked up mfc42.dll somewere). I've also found that vc71, vc8, and vc9 generate somewhat slower code. However, I think the "search in files" and "tabbed property page per source file" work better in vc71. Also, "hover" to see definitions is handy. I tend to use vc71 for development and debugging, and generate the final executable for release with vc6.

          1 Reply Last reply
          0
          • Z zhzhtst

            I also use vc6, but I don't think vc6 is famous for its compiler. As everyone knowns, it is famous for its IDE.

            A Offline
            A Offline
            azonenberg
            wrote on last edited by
            #44

            AFAIK VC6 is infamous for code generation bugs. I know of one program in which a for(i=0;i<10;i++) would mysteriously bump i to 150 even though i was NEVER accessed inside the loop!

            realJSOPR 1 Reply Last reply
            0
            • C Chris Austin

              :mad: You beat me to the comment :)

              E Offline
              E Offline
              El Corazon
              wrote on last edited by
              #45

              Chris Austin wrote:

              You beat me to the comment

              A 5 to make you feel better.... obviously I upset a few people with my comment though. :)

              _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

              C 1 Reply Last reply
              0
              • A azonenberg

                AFAIK VC6 is infamous for code generation bugs. I know of one program in which a for(i=0;i<10;i++) would mysteriously bump i to 150 even though i was NEVER accessed inside the loop!

                realJSOPR Online
                realJSOPR Online
                realJSOP
                wrote on last edited by
                #46

                But since it was obviously defined outside the context of the for loop, it could have been incremented ANYWHERE. The bug is your fault, not the fault of the compiler.

                "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                -----
                "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                A 1 Reply Last reply
                0
                • realJSOPR realJSOP

                  But since it was obviously defined outside the context of the for loop, it could have been incremented ANYWHERE. The bug is your fault, not the fault of the compiler.

                  "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                  -----
                  "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                  A Offline
                  A Offline
                  azonenberg
                  wrote on last edited by
                  #47

                  Not really. It worked fine in VC8 - and I declared it one line before the loop.

                  1 Reply Last reply
                  0
                  • E El Corazon

                    Chris Austin wrote:

                    You beat me to the comment

                    A 5 to make you feel better.... obviously I upset a few people with my comment though. :)

                    _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

                    C Offline
                    C Offline
                    Chris Austin
                    wrote on last edited by
                    #48

                    Thank you very much :)

                    El Corazon wrote:

                    obviously I upset a few people with my comment though.

                    Now that I don't get. Ahhh people are odd.

                    1 Reply Last reply
                    0
                    • J Jim Crafton

                      People often accuse those still using VC6 as holdouts, dinosaurs, or too lazy to embrace the new. Well in my case it's none of those. I'm still using VC 6 because Microsoft can't seem to produce a compiler that produces faster binaries!!! Same codebase, same machine: vc6 - Took 0.17346851 seconds or 173.4685 milliseconds vc80 binaries default optimization settings Took 0.54633341 seconds or 546.3334 milliseconds vc80, turned on favor speed optimization settings Took 0.32663722 seconds or 326.6372 milliseconds vc90 binaries default optimization settings Took 0.34099583 seconds or 340.9958 milliseconds vc90, turned on favor speed optimization settings Took 0.33104513 seconds or 331.0451 milliseconds So, after nearly a 10 year wait between the releases of VC 6 (1998) and VC 9 (2007) my program runs twice as slow. Sigh...

                      ¡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! VCF Blog

                      C Offline
                      C Offline
                      chawkinsuf
                      wrote on last edited by
                      #49

                      You are all crazy. I can't stand the vc6 ide, but most importantly the compiler doesn't even try to comply with c++ standards. As far as the ide goes, not having tabbed windows is enough to make me never want to use it. Plus it just looks old.

                      C K 2 Replies Last reply
                      0
                      • C chawkinsuf

                        You are all crazy. I can't stand the vc6 ide, but most importantly the compiler doesn't even try to comply with c++ standards. As far as the ide goes, not having tabbed windows is enough to make me never want to use it. Plus it just looks old.

                        C Offline
                        C Offline
                        chawkinsuf
                        wrote on last edited by
                        #50

                        Oh yeah, I forgot to mention the fact the the intellisense just stops working for some random reason like 50% of the time I use it.

                        1 Reply Last reply
                        0
                        • L leppie

                          GCC outshines the newer VC's too, especially in C mode.

                          xacc.ide - now with IronScheme support
                          IronScheme - 1.0 alpha 2 out now

                          N Offline
                          N Offline
                          NimitySSJ
                          wrote on last edited by
                          #51

                          GCC rocks! In spite of its flaws, it's the only one that lets me get good performance out of code that runs on all major platforms, without using say a Java VM. Since both LLVM (awesome) and many university projects in optimization use GCC, I can also reap those benefits without buying a new compiler. For instance, the PEAK optimizer uses GCC by default: http://cobweb.ecn.purdue.edu/~zpan/PEAK/[^] Of course, I would like to see it cleaned up a bit, and fully ported to Windows. No sense having GCC and MingGW when you can have just one, with a few separate modules handling OS-specific stuff. That's how I did my apps. Later, yall!

                          L 1 Reply Last reply
                          0
                          • G ghle

                            ori kovacsi wrote:

                            a VC6.0 developer has x3 times more job oportunities then C# / VB / .NET programmers.

                            That's a bunch of crap [paraphrasing here]. I have not found this to be true anywhere. Post some links if you find otherwise...

                            Gary

                            N Offline
                            N Offline
                            NimitySSJ
                            wrote on last edited by
                            #52

                            Yes, crap... or else I'd still be a Visual C++ developer. I didn't want to move to some Indonesian shop where they couldn't afford to upgrade... ;)

                            1 Reply Last reply
                            0
                            • J Jim Crafton

                              People often accuse those still using VC6 as holdouts, dinosaurs, or too lazy to embrace the new. Well in my case it's none of those. I'm still using VC 6 because Microsoft can't seem to produce a compiler that produces faster binaries!!! Same codebase, same machine: vc6 - Took 0.17346851 seconds or 173.4685 milliseconds vc80 binaries default optimization settings Took 0.54633341 seconds or 546.3334 milliseconds vc80, turned on favor speed optimization settings Took 0.32663722 seconds or 326.6372 milliseconds vc90 binaries default optimization settings Took 0.34099583 seconds or 340.9958 milliseconds vc90, turned on favor speed optimization settings Took 0.33104513 seconds or 331.0451 milliseconds So, after nearly a 10 year wait between the releases of VC 6 (1998) and VC 9 (2007) my program runs twice as slow. Sigh...

                              ¡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! VCF Blog

                              M Offline
                              M Offline
                              Mike Dimmick
                              wrote on last edited by
                              #53

                              Does your function have stack-based buffers? If so, it's probably due to the /GS switch ('Buffer Security Check') which is enabled by default on both the new compilers. If you don't think you're likely to be affected, use /GS- to turn it off. Generally I have better results with Favor Code Size Over Speed - smaller code fits into caches better and generates less paging.

                              DoEvents: Generating unexpected recursion since 1991

                              1 Reply Last reply
                              0
                              • Z zhzhtst

                                I also use vc6, but I don't think vc6 is famous for its compiler. As everyone knowns, it is famous for its IDE.

                                J Offline
                                J Offline
                                James Lonero
                                wrote on last edited by
                                #54

                                I use both VC6 and VS2008. VC6 had the best help and easiest to follow. The examples were much better than VS2002-2008. The help on VS2008 is the most painful. Startup, VC6 is instant. VS2008, even without the startup page is still slow. (If you add the addons like Resharper, its even slower.) VS2008 does have a better IDE in that I can use tabbed windows. Also, these tab windows can be split into sets of tab windows. Line number are useful, for me, now a necessity. It seems that the more you get from a product (like Visual Studio, more pain you have to endure). Something that I have found useful for C++ development in VS2008 is the find usage popup menu command. It opens a window showing all the calls for a function. (This can use some work, since it works much better for C#). That is my two cents for this discussion.

                                Z 1 Reply Last reply
                                0
                                • J James Lonero

                                  I use both VC6 and VS2008. VC6 had the best help and easiest to follow. The examples were much better than VS2002-2008. The help on VS2008 is the most painful. Startup, VC6 is instant. VS2008, even without the startup page is still slow. (If you add the addons like Resharper, its even slower.) VS2008 does have a better IDE in that I can use tabbed windows. Also, these tab windows can be split into sets of tab windows. Line number are useful, for me, now a necessity. It seems that the more you get from a product (like Visual Studio, more pain you have to endure). Something that I have found useful for C++ development in VS2008 is the find usage popup menu command. It opens a window showing all the calls for a function. (This can use some work, since it works much better for C#). That is my two cents for this discussion.

                                  Z Offline
                                  Z Offline
                                  zhzhtst
                                  wrote on last edited by
                                  #55

                                  In fact, I think Microsoft should purchase the Visual Assist X :)

                                  1 Reply Last reply
                                  0
                                  • J Jim Crafton

                                    People often accuse those still using VC6 as holdouts, dinosaurs, or too lazy to embrace the new. Well in my case it's none of those. I'm still using VC 6 because Microsoft can't seem to produce a compiler that produces faster binaries!!! Same codebase, same machine: vc6 - Took 0.17346851 seconds or 173.4685 milliseconds vc80 binaries default optimization settings Took 0.54633341 seconds or 546.3334 milliseconds vc80, turned on favor speed optimization settings Took 0.32663722 seconds or 326.6372 milliseconds vc90 binaries default optimization settings Took 0.34099583 seconds or 340.9958 milliseconds vc90, turned on favor speed optimization settings Took 0.33104513 seconds or 331.0451 milliseconds So, after nearly a 10 year wait between the releases of VC 6 (1998) and VC 9 (2007) my program runs twice as slow. Sigh...

                                    ¡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! VCF Blog

                                    K Offline
                                    K Offline
                                    Kevin McFarlane
                                    wrote on last edited by
                                    #56

                                    Remember that the VC++ dev team are walking around in T-shirts saying: "10 is the new 6." :)

                                    Kevin

                                    1 Reply Last reply
                                    0
                                    • C chawkinsuf

                                      You are all crazy. I can't stand the vc6 ide, but most importantly the compiler doesn't even try to comply with c++ standards. As far as the ide goes, not having tabbed windows is enough to make me never want to use it. Plus it just looks old.

                                      K Offline
                                      K Offline
                                      Kevin McFarlane
                                      wrote on last edited by
                                      #57

                                      chawkins1 wrote:

                                      not having tabbed windows

                                      There was the free and excellent WndTabs add-in for that though. Even today the existing tabs aren't a patch on WndTabs. But anyway, I don't do C++ these days.

                                      Kevin

                                      1 Reply Last reply
                                      0
                                      • N NimitySSJ

                                        GCC rocks! In spite of its flaws, it's the only one that lets me get good performance out of code that runs on all major platforms, without using say a Java VM. Since both LLVM (awesome) and many university projects in optimization use GCC, I can also reap those benefits without buying a new compiler. For instance, the PEAK optimizer uses GCC by default: http://cobweb.ecn.purdue.edu/~zpan/PEAK/[^] Of course, I would like to see it cleaned up a bit, and fully ported to Windows. No sense having GCC and MingGW when you can have just one, with a few separate modules handling OS-specific stuff. That's how I did my apps. Later, yall!

                                        L Offline
                                        L Offline
                                        lst16888
                                        wrote on last edited by
                                        #58

                                        haw-haw^_^,I am still use the VC++ 6.0 by now, since I graduated from university, I have been working for about 8 years, and during the past years , developping tools mostly be used is VC++ 6.0. I like it deeply! :laugh: ^_^?

                                        1 Reply Last reply
                                        0
                                        • J Jim Crafton

                                          People often accuse those still using VC6 as holdouts, dinosaurs, or too lazy to embrace the new. Well in my case it's none of those. I'm still using VC 6 because Microsoft can't seem to produce a compiler that produces faster binaries!!! Same codebase, same machine: vc6 - Took 0.17346851 seconds or 173.4685 milliseconds vc80 binaries default optimization settings Took 0.54633341 seconds or 546.3334 milliseconds vc80, turned on favor speed optimization settings Took 0.32663722 seconds or 326.6372 milliseconds vc90 binaries default optimization settings Took 0.34099583 seconds or 340.9958 milliseconds vc90, turned on favor speed optimization settings Took 0.33104513 seconds or 331.0451 milliseconds So, after nearly a 10 year wait between the releases of VC 6 (1998) and VC 9 (2007) my program runs twice as slow. Sigh...

                                          ¡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! VCF Blog

                                          A Offline
                                          A Offline
                                          Alan Balkany
                                          wrote on last edited by
                                          #59

                                          Wow, I thought I was the only one doing that! The .NET-based compilers are so sluggish, and include a lot of .NET crap that I don't need in my product. The only disadvantage to still using VC6 is that the choice of target processor is limited to what was available 10 years ago. It won't utilize the latest SSE processor registers.

                                          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