Thread: VC6 vs VC7 (2003)

  1. #1
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145

    VC6 vs VC7 (2003)

    Has anyone noticed any compile time difference between these two compilers? It seems like VC2003 takes a lot longer to compile for me. I haven't done any extreme comparisons yet. Have you noticed any difference?
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  2. #2
    Chief Code Coloniser!
    Join Date
    Apr 2005
    Posts
    121
    I've noticed the same difference. v6.0 seems to compile faster than both v7.0 and v7.1. When i say "seems" i mean that it's noticable, but like yourself I've not done any specific comparisons.

    Cheers.

  3. #3
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,817
    I have noticed that mine seems to take forever to just start running a program from within the IDE unless I choose the "without debug" option even if there are no break points set or watches, etc... By forever I mean it seems to take about a minute for the program to simply start whereas if I choose "without debug" it runs immediately. VC6 will run a program immediately regardless of whether it is just execute (CTRL+F5) or Start Debug (F5).
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

  4. #4
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981

  5. #5
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,817
    Quote Originally Posted by Codeplug
    Percent increase in boogers picked
    Funny!
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

  6. #6
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Omg, the compile time comparisons at the end of that link are insane.
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  7. #7
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    # The new compiler has better standards conformance
    # The new compiler is slower
    So by your argument, a simple batch file
    Code:
    :: this is a compiler
    Is the best of all because it is blindingly quick even though its compatibility with the standard sucks

    Personally, I'd go with the one which is correct rather than fast.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  8. #8
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Quote Originally Posted by Salem
    So by your argument
    I never said VC6 was better cause it was faster, I just pointed out that VC7 seemed a lot slower, which I now have gotten confirmation about.
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  9. #9
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    That's just one guys information. I strongly urge you to do your own timings. Who knows what compiler settings he was using for .net 2003. I'm pretty certain that it performs incremental linking correctly when enabled.

    I'm pretty sure .NET 2k3 shows the compile time by default (or an easy to find option), but the one for VC6 is undocumented I believe. You simply add /y3 to the command line startup of the shortcut and you should be good to go. Do your own research, you might be suprised with the findings.
    "...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers

  10. #10
    Registered User
    Join Date
    Apr 2003
    Posts
    2,663
    Quote Originally Posted by MrWizard
    I'm pretty sure .NET 2k3 shows the compile time by default (or an easy to find option), but the one for VC6 is undocumented I believe. You simply add /y3 to the command line startup of the shortcut and you should be good to go. Do your own research, you might be suprised with the findings.
    What is the "command line startup of the shortcut"??

  11. #11
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    Quote Originally Posted by 7stud
    What is the "command line startup of the shortcut"??
    I guess the wording was a little weird. Anyway, when you run the program you would do so as:

    MSDEV.EXE /y3

    So I was thinking if you had a shortcut you would just have this in the "Target" box.

    "C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin\MSDEV.EXE" /y3

    Or the appropriate path for you.
    "...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers

  12. #12
    Registered User
    Join Date
    Apr 2003
    Posts
    2,663
    Hi,

    Sorry, I'm still confused. I have MSVC++ 6, and when I am in the IDE, I click on the Build tool bar button to compile a program.

  13. #13
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    Quote Originally Posted by 7stud
    Hi,

    Sorry, I'm still confused. I have MSVC++ 6, and when I am in the IDE, I click on the Build tool bar button to compile a program.
    So how do you run MSVC++ 6 ? Do you do it from start -> programs -> etc ?

    Try making it a shortcut. If you don't know how, you can right click on the program name and click Send To -> Desktop(CreateShortcut).

    Then once you have the shortcut on your desktop, right click it go to properties and then at the very end of the "Target" box add the /y3 outside of the quotations.
    "...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers

  14. #14
    Registered User
    Join Date
    Apr 2003
    Posts
    2,663
    Yep, I run VC6 from a shortcut. However, after I added the /y3 outside of the quotations to the "Target" box, I clicked on Apply, and I got an error message saying the target was not valid.
    Last edited by 7stud; 04-19-2005 at 11:59 PM.

  15. #15
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    Works for me, a few posts ago I copy and pasted my "Target" box string exactly the way I have it on my machine. Make sure it's outside of the quotes, if it's inside then you will receive the error msg you described.
    "...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 8
    Last Post: 05-07-2009, 11:31 AM
  2. using VC6 link VC7 static lib error
    By George2 in forum C++ Programming
    Replies: 5
    Last Post: 06-29-2006, 10:58 PM
  3. FILES in WinAPI
    By Garfield in forum Windows Programming
    Replies: 46
    Last Post: 10-02-2003, 06:51 PM
  4. Replies: 0
    Last Post: 08-21-2003, 10:40 AM
  5. Char Variable Probelm
    By Krak in forum C++ Programming
    Replies: 1
    Last Post: 01-26-2003, 12:34 PM