It appears you have not yet registered with our community. To register please click here...

 
 
         
 
     
QuickLinks
  
Home of the Converged PDA - Phone    
 
Go Back  PDAPhoneHome.com > Pocket PC PDAPhones > PPC-6700 / XV6700 > Use UPX to compress your exe/dll files and get more out of your memory

Reply
 
PDAPhoneHome  
 
Old 06-30-2006, 10:34 PM
     
  #1 (permalink)  
Registered User
Join Date: 08-21-2003
Location: Gig Harbor, Wa
PDAPhone: xv6800
Carrier: Verizon
Posts: 532
  Send a message via AIM to robplatt Send a message via Yahoo to robplatt

Use UPX to compress your exe/dll files and get more out of your memory

Since I'm now a 6700 user I will contribute my earlier review of UPX for arm/pe exe/dll files.

For those of you who are famililar with UPX you'll already be itching to get the latest update as you read this line. For those of you arn't, read on.

UPX is "the Ultimate Packer for eXecutables". Take an exe, dll, or ocx file thats, oh... about 450kb in size. Run it through upx, and the file size drops down to 200kb or so. About 40%-50%. It compresses the executable like winzip but you dont have to decompress it to run it. it decompresses super fast in memory. You wont even notice.

The reason im posting this is because they just updated it to support ARM code. So all those exe's and dll's on your main memory (or storage memory) can be compressed now. And since they will be using less storage space, they execute faster too. I doubled my free main memory, and saved 10 megs on my storage card JUST from compressing the files.

I copied them over to a new folder on my desktop, ran
"c:\documents and settings\user\desktop\new folder\upx --best *.*"
from a command prompt. then copied the files back to my device. Simple as that. (you may also drag a file onto the upx.exe icon to compress it, or read through this thread for other methods)... If your using CardExport or wm5storage you can use a script found in this thread to compress everything on your memory card.

Opera dll is 5mb on your device, 1.6mb on mine. Results show the device executing programs faster as well.

http://upx.sf.net

Enjoy!

Last edited by robplatt : 07-06-2006 at 05:01 PM.
 
robplatt is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-01-2006, 02:14 AM
     
  #2 (permalink)  
Registered User
rennyn's Avatar
Join Date: 05-02-2006
PDAPhone: PPC6700
Carrier: SprintPCS
Posts: 347
 

Holy crap that program rocks
 
rennyn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-01-2006, 07:30 AM
     
  #3 (permalink)  
Registered User
Join Date: 04-19-2006
PDAPhone: ppc-6700
Carrier: Sprint
Posts: 6
 

are there any slowdowns or negative side effects? is it safe to use on all working programs?
 
waverider969 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 07-01-2006, 06:36 PM
     
  #4 (permalink)  
Registered User
freeza's Avatar
Join Date: 04-17-2006
Location: California
PDAPhone: PPC-6800 (Mogul)
Carrier: Sprint
Posts: 127
  Send a message via AIM to freeza Send a message via Yahoo to freeza

Don't use it on:
Resco File Explorer
SK Tools
SPB Diary
__________________
http://www.freeza-inc.com
 
freeza is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-01-2006, 08:48 PM
     
  #5 (permalink)  
Registered User
Join Date: 03-27-2005
Location: waterford,mi
Posts: 259
 

so what exactly can i use it on to compress, i dont want to screw up my phone. Id assume not on plugins and stuff that run all the time. I tihnk we need to make a list of stuff it works with and doesnt. I dont get why this hasnt been discussed more for sounding like such a great idea
 
klmsu19 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-02-2006, 01:09 AM
     
  #6 (permalink)  
Registered User
Lazybones's Avatar
Join Date: 12-16-2003
PDAPhone: PPC-6700
Carrier: Telus
Posts: 587
 

User a packer like this will save storage space, but will force the file to uncomress in RAM when opened...

There is always a trade off.
 
Lazybones is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-02-2006, 01:23 AM
     
  #7 (permalink)  
The Lost Puppy
chspyder1's Avatar
Join Date: 06-24-2006
Location: Ky, Not Hicktown
PDAPhone: Diamond
Carrier: Sprint PMS
Headset: Eclipse BT Car Kit
Posts: 305
  Send a message via AIM to chspyder1

I hear ya on the trade offs, not safe.
__________________
Chspyder
HTC Diamond, Silicone Case That Doesn't Fit, SlingMobile
 
chspyder1 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-02-2006, 01:47 AM
     
  #8 (permalink)  
Registered User
Join Date: 08-21-2003
Location: Gig Harbor, Wa
PDAPhone: xv6800
Carrier: Verizon
Posts: 532
  Send a message via AIM to robplatt Send a message via Yahoo to robplatt

uhm... you guys are sorta right and sorta wrong. first off, i compressed the latest version of resco file explorer, and it functions just fine

second. the files are taking up x amount of space in ram regardless if they're 1/2 the size on the memory card or not. since they're 1/2 the size the device is able to read it off the memory card twice as fast. the decompression routine is extremly fast.

i didnt advertise something i haven't tested... i have 50 or so apps on my main memory and every one of them run just fine, including voice command.

if anyone wants to argue, argue, but my device has been performing flawlessly and quick, and i have more free ram.

the only app that wouldnt run for me was sktools. everything listed below runs fine:

Agile messenger
phone alarm
wisbar advanced 2
memmaid
streets and trips
opera browser
pocketirc
resco file & photo viewer
skype
spb backup
trafficedge
virtual earth
vito sound recorder
voice command (rename folder, reboot, compress files, rename back, reboot)
pocket lan


the only way you'll know is to try, if you have a problem you can always decompress said file back to where it should be upx -d or reinstall your app..

of course i suggest backing up your device prior to doing it. but i have already tested it extensively. there is no lag opening opera and it was compressed 30% i think. 5mb to 1.6.

rob
 
robplatt is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-02-2006, 03:15 AM
     
  #9 (permalink)  
Registered User
rennyn's Avatar
Join Date: 05-02-2006
PDAPhone: PPC6700
Carrier: SprintPCS
Posts: 347
 

I've compressed a ton of files and it works awesome.

As for more RAM...

I opened up IE, Netfront, Verichat, POutlook AND was streaming live video and still had RAM free so things are still fine imo, considering Netfront and Verichat were both heavily compressed.

Things are up just as fast as before, too.
 
rennyn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-02-2006, 11:45 AM
     
  #10 (permalink)  
Registered User
Join Date: 08-21-2003
Location: Gig Harbor, Wa
PDAPhone: xv6800
Carrier: Verizon
Posts: 532
  Send a message via AIM to robplatt Send a message via Yahoo to robplatt

see...

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 because of in-place decompression.

In my opinion, the time it takes to decompress on a mobile device (400mhz) is faster then the added time it would take to read the rest of the file off the memory card.
using opera as an example again, 5mb to 1.6. thats 3.4 megs that would still have to have been read.
 
robplatt is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-03-2006, 10:09 AM
     
  #11 (permalink)  
Registered User
Join Date: 07-13-2005
Posts: 3
 

I've used it on a bunch as well including skype and Tom Tom (this also fixed my long hang loading they skpe icon; probably because reading a smaller file from the memory card and decompressing was faster than reading the uncompressed file.
one question for anyone that knows. What is the maximum size for Win32 programs that can be compresses?
 
fireweed is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-03-2006, 11:10 AM
     
  #12 (permalink)  
Registered User
Join Date: 08-21-2003
Location: Gig Harbor, Wa
PDAPhone: xv6800
Carrier: Verizon
Posts: 532
  Send a message via AIM to robplatt Send a message via Yahoo to robplatt

Quote:
Originally Posted by fireweed
I've used it on a bunch as well including skype and Tom Tom (this also fixed my long hang loading they skpe icon; probably because reading a smaller file from the memory card and decompressing was faster than reading the uncompressed file.
one question for anyone that knows. What is the maximum size for Win32 programs that can be compresses?
Just like the arm files, it all depends. I usually dont compress win32 exe's on the my computers, but I have compressed the crap out of whatever I could on my gig thumb drive. And same story, anywhere from 30%-60%....
 
robplatt is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-03-2006, 11:51 AM
     
  #13 (permalink)  
Registered User
jeffreii's Avatar
Join Date: 09-26-2005
Location: Miami, FL
PDAPhone: AT&T Tilt
Carrier: AT&T
Posts: 1,088
 

you can't copy most of the .exes and .dlls in the /windows folder as far as i know so it won't work on those (most notably the large ppt.exe). i also found that it won't work on the RACtrlCE.dll which is the www.logmein.com .dll in /windows - well, it works, but then when you try to log in to logmein, it prompts you to download the client again.

so far it's working well on other things though.

-jeff
__________________
AT&T Tilt aka HTC Kaiser aka TyTn II
PPC 6700 is now my TV remote control and favorite paperweight lol
 
jeffreii is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-03-2006, 11:56 AM
     
  #14 (permalink)  
No gods, No masters.
malatesta's Avatar
Join Date: 05-14-2006
Location: NY
PDAPhone: Treo 700wx
Carrier: Sprint
Headset: Discovery 640
Posts: 578
 

All I know is I just tried it on Opera and it did exactly what the OP said it'd do!

No slowdowns, no hiccups. It's just as fast if not faster than before...plus I just saved like 3.5 freakin' mb!

Now onto some other files....

Thanks robplatt for bringing this to our attention!
 
malatesta is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-03-2006, 11:58 AM
     
  #15 (permalink)  
Registered User
Join Date: 08-21-2003
Location: Gig Harbor, Wa
PDAPhone: xv6800
Carrier: Verizon
Posts: 532
  Send a message via AIM to robplatt Send a message via Yahoo to robplatt

glad I could help. the one thing that pisses me off most about these things is the lack of memory. we have 4gig sd cards on the market and they can't give us more than 128 mb of rom/ram? please.
 
robplatt is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-03-2006, 12:09 PM
     
  #16 (permalink)  
No gods, No masters.
malatesta's Avatar
Join Date: 05-14-2006
Location: NY
PDAPhone: Treo 700wx
Carrier: Sprint
Headset: Discovery 640
Posts: 578
 

I can also add:

Verichat
SplashBlog
MobiTV
PictPocket LE
CoolCamera
NewsBreak
PhoneAlarm Lite 1.52
Resco Explorer
Resoc Radio

ALL Work

(god lawdy...I'm at 12mb free space again (from 6mb). I haven't see that much in quite some time!

I'd like admend my previous statement: at least to my eye, it seems that these programs DO load faster now when "compressed".

Robplatt: see the new Asus mypal? Has 1gb internal ROM

Last edited by malatesta : 07-03-2006 at 12:25 PM.
 
malatesta is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-03-2006, 12:57 PM
     
  #17 (permalink)  
Registered User
freeza's Avatar
Join Date: 04-17-2006
Location: California
PDAPhone: PPC-6800 (Mogul)
Carrier: Sprint
Posts: 127
  Send a message via AIM to freeza Send a message via Yahoo to freeza

Resco Explorer's exe may work, but trust me. from experience, compressing the DLLs makes parts of the Resco Explorer not work.

For instance, viewing contents from a tree view does not work correctly. i'll post a screenshot.

When I compress a program, I compress everything that comes with it, DLLs and exe, and this is the result of Resco Explorer.
Attached Thumbnails
use-upx-compress-your-exe-dll-files-get-more-out-your-memory-display_1.gif  
__________________
http://www.freeza-inc.com
 
freeza is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-03-2006, 12:59 PM
     
  #18 (permalink)  
Registered User
Join Date: 08-21-2003
Location: Gig Harbor, Wa
PDAPhone: xv6800
Carrier: Verizon
Posts: 532
  Send a message via AIM to robplatt Send a message via Yahoo to robplatt

ahh you know what. Im sorry. Your right. I had a similar problem and ended up decompressing just the main exe, explorer.exe ? and all the problems went away.

mine didn't look bad as yours though. upx -d explorer.exe and let me know how your doing.

Also there are a ton of options that we could test, like, not compressing the icons?
 
robplatt is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-03-2006, 01:03 PM
     
  #19 (permalink)  
Registered User
freeza's Avatar
Join Date: 04-17-2006
Location: California
PDAPhone: PPC-6800 (Mogul)
Carrier: Sprint
Posts: 127
  Send a message via AIM to freeza Send a message via Yahoo to freeza

Good idea, although i haven't read through the UPX help file enough to know how to make it compress everything but icons.

using the -d switch successfully restored my programs (spb pocket plus, diary, resco) but for some reason it wouldnt restore sk tools. i had to reinstall that.

How do you get it to compress everything but icons?
__________________
http://www.freeza-inc.com
 
freeza is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-03-2006, 01:07 PM
     
  #20 (permalink)  
Registered User
Join Date: 08-21-2003
Location: Gig Harbor, Wa
PDAPhone: xv6800
Carrier: Verizon
Posts: 532
  Send a message via AIM to robplatt Send a message via Yahoo to robplatt

ya sktools i couldnt decompress either, i ended up just re-installing it.

goto a command prompt (cmd) and type upx -? and hit enter. i may have some time to do some testing today, if i find a way to compress it, ill post.

what was your problem with spb pocket plus & diary?
 
robplatt is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Login Panel
Enter your username and password to login:


Advertisements



PDA and Smartphone Repair & Parts

Cellular Phone Parts and Accessories



PDAPhone Chargers and Screen Protectors

Where Photographers Meet

Please Help By Taking Our Survey!





Our Friends





All times are GMT -5. The time now is 10:51 PM.

               
 
Design by VBSz   |  Hosting by PWH   |  
Copyright © 2002-2007, Convergent Minds, LLC - All Rights Reserved.