Different Executable Size
by James Yong · in Torque Game Engine · 01/07/2004 (10:46 pm) · 9 replies
Hi,
I am a programmer but I don't program in C. Maybe this is a silly question. I compiled the engine source and noticed that executable file size is 3236KB. The executable file size for the Torque Demo is 1002KB. Another one from codesampler.com is 2288KB.
Anyone knows what's the difference?
James Yong
I am a programmer but I don't program in C. Maybe this is a silly question. I compiled the engine source and noticed that executable file size is 3236KB. The executable file size for the Torque Demo is 1002KB. Another one from codesampler.com is 2288KB.
Anyone knows what's the difference?
James Yong
About the author
#2
edit: here i am as usual missing the post before me by a minute or 2 :P
01/07/2004 (10:54 pm)
If something compiled from the same piece of code varies in size it usually depends on a number of factors: if it's retail or debug, what compiler you use, compiler options (optimization and such), etc...edit: here i am as usual missing the post before me by a minute or 2 :P
#3
I have used MS VC6 to compile the engine source code. The executable is a release build, not debug.
I will check out on the compiler settings.
Regards,
James Yong
01/08/2004 (1:16 am)
Thanks for the replies.I have used MS VC6 to compile the engine source code. The executable is a release build, not debug.
I will check out on the compiler settings.
Regards,
James Yong
#4
01/08/2004 (8:32 am)
The demo is also packed with upx before distribution so you won't be able to match its size just with compiler options
#5
Hi,
How can I be able to do a build with no debug info?
In other words: how can I get the executable size as low as possible?
Thanks
06/13/2007 (6:02 pm)
@Markus:Hi,
How can I be able to do a build with no debug info?
In other words: how can I get the executable size as low as possible?
Thanks
#6
Should result in the smallest possible executable.
06/14/2007 (1:20 am)
Release build with optimize to size ( /O1), favor size over speed and when compiled, do an upx -9 compression.Should result in the smallest possible executable.
#7
I just don't know how to do that! what is an upx-9 compression?
Can describe the steps to down the 3.3 MB size of my executable?
Thanks!
PS I'm using TBG 1.1.3 tot TGE
06/15/2007 (8:49 am)
@Marc,I just don't know how to do that! what is an upx-9 compression?
Can describe the steps to down the 3.3 MB size of my executable?
Thanks!
PS I'm using TBG 1.1.3 tot TGE
#8
I want to ask if there will be a problem with the game performance doing this. Until I can see, my game is working ok after do this
Thanks
09/18/2007 (11:33 am)
I have compressed the 3.3. MB file to 1.37 MB using a protection system that compress the actual exe.I want to ask if there will be a problem with the game performance doing this. Until I can see, my game is working ok after do this
Thanks
#9
09/18/2007 (12:03 pm)
Most exe compression suites only compress it for disk size. When run, it is expanded in memory. You may get some overhead for the expansion process, but that should be it.
Torque Owner Markus Nuebel
You can do a debug or a release build of the torque engine.
The release build, which has no debug infos is about 1 MB.
The debug build, with all debug infos, symbol tables, etc. in it is about 3 MB.
I don't know how the codesampler executable is build, but different compilers paired with different compiler settings (e.g. optimize for speed/size/..) result in different executable size.
As a matter of fact the size depends on your compiler settings.
-- Markus