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. Other Discussions
  3. The Back Room
  4. FYI - MSFT's response

FYI - MSFT's response

Scheduled Pinned Locked Moved The Back Room
c++csharpcollaborationhelpquestion
9 Posts 5 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.
  • C Offline
    C Offline
    Chris Losinger
    wrote on last edited by
    #1

    {err... did i hit modify instead of reply???} i posted my problem on usenet last night. today, i got this response from a MS tech on microsoft.public.dotnet.languages.vc: --------- Ok -- I ran a little experiment: I compiled the following code into a library using Visual C++ 6.0, Visual C++ 7.0 and Visual C++ 7.* #include <iostream> void f() { std::cout << "Hello" << std::endl; } void g() { std::cout << "Goodbye" << std::endl; } I used /O1 /Ob1 /MD /EHsc Here are the sizes of the libs that resulted Visual C++ 6.0 - 3952 bytes Visual C++ 7.0 - 10528 bytes - 2.66 times larger than 6.0 Visual C++ 7.* - 11690 bytes - 2.95 times larger than 6.0 So I dumped the symbols from each lib: The 6.0 lib has 24 symbols The 7.0 lib has 47 symbols The 7.1 lib has 51 symbols Almost all the extra symbols are STL related -- especially locale related. It does look like we are paying quite a hefty price for a fully conformant version of the Standard C++ Library. I've gotten in touch with the libraries team here to see if they have any comments about these numbers.

    M J C 3 Replies Last reply
    0
    • C Chris Losinger

      {err... did i hit modify instead of reply???} i posted my problem on usenet last night. today, i got this response from a MS tech on microsoft.public.dotnet.languages.vc: --------- Ok -- I ran a little experiment: I compiled the following code into a library using Visual C++ 6.0, Visual C++ 7.0 and Visual C++ 7.* #include <iostream> void f() { std::cout << "Hello" << std::endl; } void g() { std::cout << "Goodbye" << std::endl; } I used /O1 /Ob1 /MD /EHsc Here are the sizes of the libs that resulted Visual C++ 6.0 - 3952 bytes Visual C++ 7.0 - 10528 bytes - 2.66 times larger than 6.0 Visual C++ 7.* - 11690 bytes - 2.95 times larger than 6.0 So I dumped the symbols from each lib: The 6.0 lib has 24 symbols The 7.0 lib has 47 symbols The 7.1 lib has 51 symbols Almost all the extra symbols are STL related -- especially locale related. It does look like we are paying quite a hefty price for a fully conformant version of the Standard C++ Library. I've gotten in touch with the libraries team here to see if they have any comments about these numbers.

      M Offline
      M Offline
      Matt Newman
      wrote on last edited by
      #2

      Probably just a little snafu in project settings, it could be linking something extra? -:suss:Matt Newman / Windows XP Activist:suss: -Sonork ID: 100.11179
      "You can't seriously believe that you could get away with suing someone over quoting text from a message posted in a public forum, can you?" - John Simmons

      C 1 Reply Last reply
      0
      • M Matt Newman

        Probably just a little snafu in project settings, it could be linking something extra? -:suss:Matt Newman / Windows XP Activist:suss: -Sonork ID: 100.11179
        "You can't seriously believe that you could get away with suing someone over quoting text from a message posted in a public forum, can you?" - John Simmons

        C Offline
        C Offline
        Chris Losinger
        wrote on last edited by
        #3

        no linking involved - these are static .LIBs. i've quadruple-double-triple checked the settings and i don't see anything that looks like "add tons of duplicate junk to the .LIB". :) -c


        Though the cough, hough and hiccough so unsought would plough me through, enough that I o'er life's dark lough my thorough course pursue. --Stuart Kidd

        image effects!

        M T 2 Replies Last reply
        0
        • C Chris Losinger

          no linking involved - these are static .LIBs. i've quadruple-double-triple checked the settings and i don't see anything that looks like "add tons of duplicate junk to the .LIB". :) -c


          Though the cough, hough and hiccough so unsought would plough me through, enough that I o'er life's dark lough my thorough course pursue. --Stuart Kidd

          image effects!

          M Offline
          M Offline
          Matt Newman
          wrote on last edited by
          #4

          Maybe you should try voodoo or satanic incantations, they might help :) -:suss:Matt Newman / Windows XP Activist:suss: -Sonork ID: 100.11179
          "You can't seriously believe that you could get away with suing someone over quoting text from a message posted in a public forum, can you?" - John Simmons

          1 Reply Last reply
          0
          • C Chris Losinger

            no linking involved - these are static .LIBs. i've quadruple-double-triple checked the settings and i don't see anything that looks like "add tons of duplicate junk to the .LIB". :) -c


            Though the cough, hough and hiccough so unsought would plough me through, enough that I o'er life's dark lough my thorough course pursue. --Stuart Kidd

            image effects!

            T Offline
            T Offline
            Tomasz Sowinski
            wrote on last edited by
            #5

            Is there anything like dumpbin.exe in VC.NET? You could at least get .lib section sizes. Anyway, let us know if anybody solves/explains the reason for static bloat. Tomasz Sowinski -- http://www.shooltz.com

            "Yields falsehood when preceded by its quotation" yields falsehood when preceded by its quotation.

            1 Reply Last reply
            0
            • C Chris Losinger

              {err... did i hit modify instead of reply???} i posted my problem on usenet last night. today, i got this response from a MS tech on microsoft.public.dotnet.languages.vc: --------- Ok -- I ran a little experiment: I compiled the following code into a library using Visual C++ 6.0, Visual C++ 7.0 and Visual C++ 7.* #include <iostream> void f() { std::cout << "Hello" << std::endl; } void g() { std::cout << "Goodbye" << std::endl; } I used /O1 /Ob1 /MD /EHsc Here are the sizes of the libs that resulted Visual C++ 6.0 - 3952 bytes Visual C++ 7.0 - 10528 bytes - 2.66 times larger than 6.0 Visual C++ 7.* - 11690 bytes - 2.95 times larger than 6.0 So I dumped the symbols from each lib: The 6.0 lib has 24 symbols The 7.0 lib has 47 symbols The 7.1 lib has 51 symbols Almost all the extra symbols are STL related -- especially locale related. It does look like we are paying quite a hefty price for a fully conformant version of the Standard C++ Library. I've gotten in touch with the libraries team here to see if they have any comments about these numbers.

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

              Chris, The solution is so obvious, I am completely flabbergasted that you do not see it: Obviously the correct thing to do is stop developing in these silly, old fashioned, file based languages like C, and C++, and move over to more modern and pleasant languages like, dare I say it, C#. These languages will obviously allow you to be immediately more productive, as well as having code that looks prettier, thus justify throwing away hundreds of thousands of your man-hours of code to rewrite it all in the new fangled tools and pretty languages like C#. :)

              C 1 Reply Last reply
              0
              • J Jim Crafton

                Chris, The solution is so obvious, I am completely flabbergasted that you do not see it: Obviously the correct thing to do is stop developing in these silly, old fashioned, file based languages like C, and C++, and move over to more modern and pleasant languages like, dare I say it, C#. These languages will obviously allow you to be immediately more productive, as well as having code that looks prettier, thus justify throwing away hundreds of thousands of your man-hours of code to rewrite it all in the new fangled tools and pretty languages like C#. :)

                C Offline
                C Offline
                Chris Losinger
                wrote on last edited by
                #7

                :) as if.. -c


                Though the cough, hough and hiccough so unsought would plough me through, enough that I o'er life's dark lough my thorough course pursue. --Stuart Kidd

                image effects!

                1 Reply Last reply
                0
                • C Chris Losinger

                  {err... did i hit modify instead of reply???} i posted my problem on usenet last night. today, i got this response from a MS tech on microsoft.public.dotnet.languages.vc: --------- Ok -- I ran a little experiment: I compiled the following code into a library using Visual C++ 6.0, Visual C++ 7.0 and Visual C++ 7.* #include <iostream> void f() { std::cout << "Hello" << std::endl; } void g() { std::cout << "Goodbye" << std::endl; } I used /O1 /Ob1 /MD /EHsc Here are the sizes of the libs that resulted Visual C++ 6.0 - 3952 bytes Visual C++ 7.0 - 10528 bytes - 2.66 times larger than 6.0 Visual C++ 7.* - 11690 bytes - 2.95 times larger than 6.0 So I dumped the symbols from each lib: The 6.0 lib has 24 symbols The 7.0 lib has 47 symbols The 7.1 lib has 51 symbols Almost all the extra symbols are STL related -- especially locale related. It does look like we are paying quite a hefty price for a fully conformant version of the Standard C++ Library. I've gotten in touch with the libraries team here to see if they have any comments about these numbers.

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

                  When you say VC 7.1 are you talking about the as-yet-unreleased update to VC++.NET? cheers, Chris Maunder

                  C 1 Reply Last reply
                  0
                  • C Chris Maunder

                    When you say VC 7.1 are you talking about the as-yet-unreleased update to VC++.NET? cheers, Chris Maunder

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

                    those are MSFT's words, but yeah, that's probably what he meant. -c


                    Though the cough, hough and hiccough so unsought would plough me through, enough that I o'er life's dark lough my thorough course pursue. --Stuart Kidd

                    image effects!

                    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