473,395 Members | 1,471 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Help with Visual C++.NET

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
4 1574
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: Dave | last post by:
After following Microsofts admonition to reformat my system before doing a final compilation of my app I got many warnings/errors upon compiling an rtf file created in word. I used the Help...
0
by: TDM | last post by:
Hello all, I suspect I created my own problem as I had a need to install an older version of MSDN Library so now my .NET Documentation is broken. When I run : Start/All Programs/Microsoft...
10
by: darren | last post by:
hi iam righting aprogram that creates its own desktop shotcut and a want to add a command line switch so i want to have a string like this "C:\Documents and Settings\Darren\My Documents\Visual...
4
by: Marek Krzeminski | last post by:
I am new to ASP and I am having some problems that I hope someone can help me with. I am using WindowsXP and a book to try to learn ASP. The book instructed me to install IIS & .Net Framework...
15
by: DavidS | last post by:
Have Visual Studio.NET installed on MS 2000 Professional OS laptop. No issue ever with web development and SQL connections. Purchased new laptop with XP Professional SP2!!!!!!!! & Visual...
4
by: | last post by:
Environment: Microsoft Visual Studio 2005 Professional Edition Microsoft Visual Source Safe 2005 FxCop 1.32 Project: ASP.NET 2.0 C# Project 5 Developers We are trying to implement FxCop...
2
by: ste | last post by:
VS2005, .NET2 I have a dll that is using TraceSources with no problems. The dll is linked to a webservice. The webservice creates its own traceSource and every thing looks fine.. however...
53
by: Hexman | last post by:
Hello All, I'd like your comments on the code below. The sub does exactly what I want it to do but I don't feel that it is solid as all. It seems like I'm using some VB6 code, .Net2003 code,...
1
by: ligong.yang | last post by:
Hi all, I got tortured by a very weird problem when I was using k. wilder's random generator class in my program. PS: wilder's generator class can be found at...
1
by: ligong.yang | last post by:
Hi all, I got tortured by a very weird problem when I was using k. wilder's random generator class in my program. PS: wilder's generator class can be found at...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.