|
-
Feb 1st, 2002, 10:09 AM
#1
Thread Starter
Addicted Member
exe compressing...?
Hello,
In these days I'm learning Delphi and this question is about both of...When I write the program in Delphi the exe file's size is being 300k,same program in VB takes 16k.Why Delphi exe's size is bigger than VB? and what can I do for make this size smaller?
-
Feb 1st, 2002, 10:13 AM
#2
Well considering this is not a Delphi board....
ill try to answer best i can
probably becuase VB uses runtimes and stores alot of what it uses in its runtimes while Delphi packs it all into its EXE.
There are exe compressors out there...for the life of me I cant think of the name of one..I think one of the popular ones starts with a U..
-
Feb 1st, 2002, 11:05 AM
#3
Thread Starter
Addicted Member
Its true vbsquare is not a Delphi board but this question is about both .
-
Feb 1st, 2002, 12:13 PM
#4
Frenzied Member
Is the VB exe compiled as packed code (aka P-Code)?
This is a M$ exe format that is much more compact than straight x86 assembler...but a bit slower as it has to be converted to assembler at run time...
-
Feb 1st, 2002, 12:20 PM
#5
Retired VBF Adm1nistrator
Originally posted by MerrionComputin
Is the VB exe compiled as packed code (aka P-Code)?
This is a M$ exe format that is much more compact than straight x86 assembler...but a bit slower as it has to be converted to assembler at run time...
P-Code is pseudo-code, and its a cross between a proper natively compiled executable, and the HLL instructions you type into the IDE
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Feb 1st, 2002, 01:44 PM
#6
Frenzied Member
Here's one to try....it works well. 
"the Ultimate Packer for eXecutables"
http://upx.sourceforge.net/
From the Web-page:
"UPX is a free, portable, extendable, high-performance executable packer for several different executable formats. It achieves an excellent compression ratio and offers very fast decompression. Your executables suffer no memory overhead or other drawbacks"
-
Feb 5th, 2002, 05:09 PM
#7
Thread Starter
Addicted Member
thanks for all replies and Bloodeye UPX is very good compresser.I have convert 302kb exe to 126kb (%60-%70).Its enough,is it?.Thanks again
-
Feb 5th, 2002, 05:20 PM
#8
Frenzied Member
yeah upx works good, if you want to pay for a brand name product use bit-arts crunch but it works just as well as upx, sometimes i like upx better cuz it's smaller and easier.
-
Feb 6th, 2002, 03:17 AM
#9
Retired VBF Adm1nistrator
Well as a matter of fact I've managed to shrink the executable of the main application I work on from 820k to 464k by code alone
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
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
|