|
-
Jan 11th, 2002, 10:58 AM
#1
Thread Starter
Frenzied Member
How to reduce size of executable?
hi,
I had a question regarding the size of the executable.
I downloaded a sample project yesterday from planetsourcecode.com.
I am working on recreating it with some modifications. However, during testing of my new project, I noticed that the size of my executable is 3 times larger than the sample project's executable. The really strange thing about this is my project is not even complete and has noticebly less code than the sample project I downloaded.
The only real difference is that the sample project is a Win32 Console app and mine is a Win32 App.
What's the difference? Is it a setting in the compiler somewhere? I'm using VC++.
Any help would be appreciated..
Dan
-
Jan 11th, 2002, 11:32 AM
#2
Addicted Member
you can debug your app. in different debug modes......win 32 release and another, try compiling win 32 release mode and see if the size reduces......
-
Jan 11th, 2002, 12:01 PM
#3
Monday Morning Lunatic
You can only debug programs compiled as Win32 Debug.
Win32 Console Application and Win32 Application are more or less the same. You can shrink the final .exe size by setting it to use the runtime library in a DLL rather than statically linking it into the program file.
Project Settings->C++ and choose Multithreaded DLL (or Debug Multithreaded DLL if you're changing Win32 Debug).
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Jan 11th, 2002, 12:11 PM
#4
Thread Starter
Frenzied Member
I don't see an option such as "Multithreaded DLL" in the C++ tab.
Where exactly is it?
-
Jan 11th, 2002, 12:13 PM
#5
Monday Morning Lunatic
Go to the C++ tab, and go through the combo box until there's an option coming up on the tab saying "Static lib" or something.
I don't have VC at work so I can't say for sure.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|