Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Large exe filesize!

Author
Message
Steve O
AGK Bronze Backer
20
Years of Service
User Offline
Joined: 24th Feb 2004
Location: The Netherlands
Posted: 15th Dec 2004 18:07
Is there a way to bring down the filesize of the produced executable?
This code:


...produces in Debug mode: 3.68 MB
and in Release mode: 2.39 MB

i know you can compress the exe with an exe-compressor but im wondering if there's some setting in VC++ that can be changed in order to reduce the filesize...

OSX Using Happy Dude
20
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 15th Dec 2004 18:08 Edited at: 15th Dec 2004 18:09
Nope - thats around the minimum size.
You could try fiddling around with optimisation, but that generally doesn't affect the program size.

VS .Net produces bigger executables than VS6, by the way.

Beware the cat... The alien... The heretic...
Steve O
AGK Bronze Backer
20
Years of Service
User Offline
Joined: 24th Feb 2004
Location: The Netherlands
Posted: 15th Dec 2004 18:09
ok, i'll just use an exe-compressor then.

DallasG
19
Years of Service
User Offline
Joined: 8th Dec 2004
Location: Jozi SA
Posted: 15th Dec 2004 18:20
i suppose one doesnt have to use

*AMD64 3200+* *Lanparty UT nf3 250gb* *Leadtek nVidia 6800GT* *768Mb DDR400* *Coolermaster CM Stacker*
Rob K
Retired Moderator
21
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 15th Dec 2004 18:37
@Steve O

Go into Project Settings > C++ > Code Generation and under runtime library, try switching from Single/Multi-Threaded Static Library to either of the DLL options.


BlueGUI:Windows UI Plugin - All the power of the windows interface in your DBPro games.
Steve O
AGK Bronze Backer
20
Years of Service
User Offline
Joined: 24th Feb 2004
Location: The Netherlands
Posted: 15th Dec 2004 18:54
"Single-threaded(/ML)" produces the smallest exe of all options, but still the 2.39 MB Release Mode filesize.

OSX Using Happy Dude
20
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 15th Dec 2004 19:10
I bet your using VS .Net...

Beware the cat... The alien... The heretic...
Steve O
AGK Bronze Backer
20
Years of Service
User Offline
Joined: 24th Feb 2004
Location: The Netherlands
Posted: 15th Dec 2004 20:30
Cellbloc Studios
20
Years of Service
User Offline
Joined: 15th Mar 2004
Location: Atlanta, GA
Posted: 16th Dec 2004 01:35
Yes. Most of my programs are 1.5 - 1.92 megs and that is a full game! I'm using VS6

-This...is my boomstick!
SoulMan
21
Years of Service
User Offline
Joined: 22nd Nov 2002
Location: In a house somewhere on the planet earth
Posted: 16th Dec 2004 02:35 Edited at: 16th Dec 2004 02:36
Does Size really matter that much when Considering the processing power of CPU's today and the internet as it is now with many folks using Broadband? A 3 meg exe is not uncommon these days.
SoulMan

This is as backwards as is This
Cellbloc Studios
20
Years of Service
User Offline
Joined: 15th Mar 2004
Location: Atlanta, GA
Posted: 16th Dec 2004 03:01
Well, yes. I'm in Honduras and the bandwidth is not that great. It takes me almost 10 hours to download a 5 meg file.

-This...is my boomstick!
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 16th Dec 2004 03:31
And 2.39 MB is a lot considering the program does virtually nothing.

CURRENT PROJECT: Chaos Hizzle Demo
Jizzah
19
Years of Service
User Offline
Joined: 9th Dec 2004
Location:
Posted: 16th Dec 2004 10:14
Thats the problem with a static library is that you have to link in the entire library when making the EXE as opposed to DLLs or using something like ATL (ActiveX Template Library) in which only the parts you use are compiled into the final executable.
Little Freak
19
Years of Service
User Offline
Joined: 17th Dec 2004
Location:
Posted: 17th Dec 2004 11:01
Wow since when do people complain about 1.9mbs Dude I would only start complaining about my games when they start hitting 1gb. Got one that is over 2gb(counting all models and images and sounds) that i wrote with c++

Login to post a reply

Server time is: 2024-04-25 07:47:18
Your offset time is: 2024-04-25 07:47:18