By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,260 Members | 1,340 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,260 IT Pros & Developers. It's quick & easy.

Help with Visual C++.NET

P: n/a
Hello, folks! Newbie question here: I just purchased Visual C++.NET
2003 Standard and have found the build sizes to be rather large. A
simple "Hello World" executable (console) comes to 44Kb and a standard
window (nothing more than a window) executable comes to 23Kb, both
compiled to "Release". I have compiled the exact same code under
Dev-C++ and those executables are 4kb and 5Kb, respectively. What the
heck is with this? Does anyone have any suggestions? Thank you.
Jul 22 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
codejunkie wrote:
Hello, folks! Newbie question here: I just purchased Visual C++.NET
2003 Standard and have found the build sizes to be rather large. A
simple "Hello World" executable (console) comes to 44Kb and a standard
window (nothing more than a window) executable comes to 23Kb, both
compiled to "Release". I have compiled the exact same code under
Dev-C++ and those executables are 4kb and 5Kb, respectively. What the
heck is with this? Does anyone have any suggestions? Thank you.


Try downloading the Visual C++ Toolkit 2003, enabling the "optimize for
size" option, and make sure you dynamically link with libraries rather than
statically. Also, make /sure/ that you compile in Release mode, *not* debug.

- Pete
Jul 22 '05 #2

P: n/a
codejunkie wrote:
Hello, folks! Newbie question here: I just purchased Visual C++.NET
2003 Standard and have found the build sizes to be rather large. A
simple "Hello World" executable (console) comes to 44Kb and a standard
window (nothing more than a window) executable comes to 23Kb, both
compiled to "Release". I have compiled the exact same code under
Dev-C++ and those executables are 4kb and 5Kb, respectively. What the
heck is with this? Does anyone have any suggestions? Thank you.


The Visual C++ .Net 2003 standard edition compiler does not support
optimisations. So even if you compile in release mode, it will not optimise.

The optimising compiler from VC2003 has recently been made available for
free in the Visual C++ Toolkit 2003. You can download it here:
http://msdn.microsoft.com/visualc/vctoolkit2003/

--
Unforgiven

Jul 22 '05 #3

P: n/a
VC++.NET standard edition does not contain the optimizer.

You will need the VC++.NET professional edition to get the optimizer.
I think that forces you to buy the VS.NET professional.

Sandeep
--
http://www.EventHelix.com/EventStudio
EventStudio 2.0 - System Architecture Design CASE Tool
Jul 22 '05 #4

P: n/a
EventHelix.com wrote:
VC++.NET standard edition does not contain the optimizer.

You will need the VC++.NET professional edition to get the optimizer.
I think that forces you to buy the VS.NET professional.

Sandeep


No, the optimizing compiler is availible as a free download from Microsoft's
VC++ page:
http://msdn.microsoft.com/visualc/vctoolkit2003/

- Pete
Jul 22 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.