flat assembler
Message board for the users of flat assembler.

Index > Heap > Executable compression

Author
Thread Post new topic Reply to topic
OzzY



Joined: 19 Sep 2003
Posts: 1029
Location: Everywhere
OzzY
Are there any side effects (bad things) about using an executable compressor like UPX or FSG?
Which compressor has better compression and less side effects (if any)?

Thanks Wink
Post 28 Aug 2007, 01:46
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
If I remember right FSG had some problems on systems with DEP enabled, is that still true?
Post 28 Aug 2007, 01:50
View user's profile Send private message Reply with quote
OzzY



Joined: 19 Sep 2003
Posts: 1029
Location: Everywhere
OzzY
What's DEP?
Post 28 Aug 2007, 01:52
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
Data Execution Prevention. Feature that comes with WinXP SP2 and the NX (No Execute) bit on paging structures in processors that supports it (Athlon64, some P4, Core, etc). However if the processor does not support the feature, Windows still uses software DEP (which is less featured than hardware DEP).
Post 28 Aug 2007, 02:07
View user's profile Send private message Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3170
Location: Denmark
f0dder
DEP is one thing, but there are other issues as well. Basically, don't compress anything that makes sense running multiple instances of, or will end up running on a terminal server.

Btw for really-tiny executables (4k intros), see http://crinkler.net/ .
Post 28 Aug 2007, 10:07
View user's profile Send private message Visit poster's website Reply with quote
Embrance



Joined: 14 Mar 2004
Posts: 116
Location: Greece
Embrance
Theres no sense in compressing exes anymore,and they are less than 10MB in size.In old days it was,since the whole game usually was just an exe file,while now days it isnt.
Post 28 Aug 2007, 18:41
View user's profile Send private message MSN Messenger ICQ Number Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo
Embrance wrote:
Theres no sense in compressing exes anymore,and they are less than 10MB in size.In old days it was,since the whole game usually was just an exe file,while now days it isnt.


UPX can compress (but not unpack) Linux's bvmimage (or whatever) and it does indeed help greatly in many cases (low HD space, floppies, small USB, etc), especially when big chunks of the .EXE are just zeros! They've got it working for/on *BSD now too, so now you have no excuse to waste space! Laughing
Post 29 Aug 2007, 00:25
View user's profile Send private message Visit poster's website Reply with quote
OzzY



Joined: 19 Sep 2003
Posts: 1029
Location: Everywhere
OzzY
I never had problems with exe compression.
Latest version of UPX seems to compress really good and I didn't notice any memory overhead.
I think it's worth to compress big (~ 3MB) C++ programs.

Another thing:
I search for tools able to bundle DLLs inside executables. Any sugestion?
Post 01 Sep 2007, 00:07
View user's profile Send private message Reply with quote
TmX



Joined: 02 Mar 2006
Posts: 822
Location: Jakarta, Indonesia
TmX
OzzY wrote:

Another thing:
I search for tools able to bundle DLLs inside executables. Any sugestion?


PEBundle Wink
Post 01 Sep 2007, 02:46
View user's profile Send private message Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3170
Location: Denmark
f0dder
OzzY: if you're going to run multiple instances of the app then compression is bad. If you're going to run the app on a terminal server, then compression is very bad.

At least give the end-user a choice by sticking to something default that can easily be decompressed... ie, UPX without any modifications.
Post 01 Sep 2007, 08:23
View user's profile Send private message Visit poster's website Reply with quote
kohlrak



Joined: 21 Jul 2006
Posts: 1421
Location: Uncle Sam's Pad
kohlrak
TmX wrote:
OzzY wrote:

Another thing:
I search for tools able to bundle DLLs inside executables. Any sugestion?


PEBundle Wink


Looks nice, though you wish it were free... XD
Post 03 Sep 2007, 20:20
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.