Results 1 to 9 of 9

Thread: exe compressing...?

  1. #1

    Thread Starter
    Addicted Member oktay's Avatar
    Join Date
    Mar 2001
    Location
    Istanbul-TURKEY
    Posts
    158

    Exclamation 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?

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    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..
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3

    Thread Starter
    Addicted Member oktay's Avatar
    Join Date
    Mar 2001
    Location
    Istanbul-TURKEY
    Posts
    158
    Its true vbsquare is not a Delphi board but this question is about both .

  4. #4
    Frenzied Member MerrionComputin's Avatar
    Join Date
    Apr 2001
    Location
    Dublin, Ireland
    Posts
    1,616
    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...
    ----8<---------------------------------------
    NEW - The .NET printer queue monitor component
    ----8<---------------------------------------
    Now with Examples of use

  5. #5
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    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]

  6. #6
    Frenzied Member
    Join Date
    Mar 2001
    Location
    You are HERE •™
    Posts
    1,300
    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"

  7. #7

    Thread Starter
    Addicted Member oktay's Avatar
    Join Date
    Mar 2001
    Location
    Istanbul-TURKEY
    Posts
    158
    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

  8. #8
    Frenzied Member numtel's Avatar
    Join Date
    Apr 2000
    Location
    CA
    Posts
    1,163
    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.

  9. #9
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    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
  •  



Click Here to Expand Forum to Full Width