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 07-19-2006, 12:38 PM
     
  #81 (permalink)  
Registered User
Waitin's Avatar
 Support Developer with PaypalPaypal Verified Donate to Member
Join Date: 12-08-2005
Location: Yuma, AZ
PDAPhone: PPC-6700
Carrier: Sprint
Posts: 250
 

Quote:
Quote:
Originally Posted by Waitin
So who's going to be the first to screw up (ahem...) I mean try this out on Powerpoint?


WM5 won't allow you to copy that file off of the device. I tried to, but it wouldn't allow it...
Correct, you can't copy it off the device, but now that UPX can be potentially run ON the device, this may be possible. Running UPX on the device is what is being discussed on the 3 or 4 posts before mine.
__________________
Projects: (PeraStats 1.6.5) (PeraCount with Clock 1.2.5) (PeraCount 1.2.5) (PeraProfiler 1.1.5) (S2U2Lock 1.0)
 
Waitin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-19-2006, 12:59 PM
     
  #82 (permalink)  
Registered User
jamesus's Avatar
 Support Developer with Paypal Donate to Member
Join Date: 06-13-2006
Location: Chicago, IL
PDAPhone: Mogul 6800
Carrier: Sprint
Headset: Jawbone
Posts: 487
 

Quote:
Originally Posted by Waitin
Correct, you can't copy it off the device, but now that UPX can be potentially run ON the device, this may be possible. Running UPX on the device is what is being discussed on the 3 or 4 posts before mine.
Good call...i completely spaced on my last post. That being said, I am not going to be the first one...
 
jamesus is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-19-2006, 01:31 PM
     
  #83 (permalink)  
Fully Distracted
Join Date: 02-06-2004
Location: Clearwater, FL
Posts: 187
 

It is useless to compress the files that are flash installed in ROM. These are read-only, so even if you copy the ppt.exe over the one in rom, it will only appear to overwrite the original ppt.exe. If you delete it, the original ppt.exe will magically reappear. Attempting to compress it would only result in more memory usage, as the original would still be there, just hidden and the new one would take additional space. So anything installed via the "flash" upgrade is off the list. Anything you install or is installed from the ext-rom is game for compression.

PS. There is a way to extract the rom installed files. I have attached the ppt.exe (zipped), just in case anyone wants to prove or disprove my assumptions.
Attached Files
File Type: zip ppt.zip (907.6 KB, 29 views)
__________________
Spcs 6800 - Touch modifications
 
Paul_Hammons is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-19-2006, 01:35 PM
     
  #84 (permalink)  
Too much time, not enough to do
halr9000's Avatar
Join Date: 11-26-2005
Location: Atlanta or thereabouts
PDAPhone: PPC-6700
Carrier: Sprint
Posts: 158
  Send a message via AIM to halr9000

Quote:
Originally Posted by malatesta
Cool! When you say a Command Line Interface, do you mean a dos one or something along THESE lines?
Ahh cool, I didn't know of this app. Yes, this should do it, but you'd have to type in the directories manually (or copy and paste from a file mgr like Total Commander).
__________________
Psi webmaster
psi-im.org
 
halr9000 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-19-2006, 09:07 PM
     
  #85 (permalink)  
Registered User
slypher's Avatar
Join Date: 05-01-2006
PDAPhone: Touch Pro
Carrier: SPCS
Headset: JawBone
Posts: 71
 

just compressed the exe and dlls for:

Voice Command
Tom Tom
Wisbar
Mortplayer
Championship Spades Pro
SpbBackup
Skype

So far all is well, and i saved about 3.5MB of space

Now i saw mention earlier of compressing icons, and some saying that they compressed everything. Is there more that i can compress in addition to the dlls and the exe? Also what do i compress for phone alarm? Can the skins be compressed? I also wanna try to get weatherpanel smaller too if possible.

Thanks

Last edited by slypher : 07-19-2006 at 10:09 PM.
 
slypher is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-20-2006, 09:19 AM
     
  #86 (permalink)  
Too much time, not enough to do
halr9000's Avatar
Join Date: 11-26-2005
Location: Atlanta or thereabouts
PDAPhone: PPC-6700
Carrier: Sprint
Posts: 158
  Send a message via AIM to halr9000

Quote:
Originally Posted by slypher
Now i saw mention earlier of compressing icons, and some saying that they compressed everything. Is there more that i can compress in addition to the dlls and the exe? Also what do i compress for phone alarm? Can the skins be compressed? I also wanna try to get weatherpanel smaller too if possible.
What command-line did you use? 'upx --best' will get you...the best. No, there's not really anything besides exe and dlls that you can compress with this tool, it's only meant to compress executable code, not data files.
__________________
Psi webmaster
psi-im.org
 
halr9000 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-20-2006, 09:32 AM
     
  #87 (permalink)  
Registered User
Join Date: 02-14-2006
PDAPhone: XV6700
Carrier: Verizon Wireless
Posts: 5
 

Post Compressing icons...

Quote:
Originally Posted by slypher
Now i saw mention earlier of compressing icons, and some saying that they compressed everything. Is there more that i can compress in addition to the dlls and the exe?
Thanks
What you saw about icons was a switch that controls whether icons are compressed if they are already inside the .exe/.dll files. The reason you would not want to compress them is some applications reference icons that are inside of an exe or dll without loading that exe or dll, if that is the case the icons would be garbled or possibly crash as the UPX decompressor does not get run that was embedded in the .dll or .exe.
Post
Post
Post
 
gzub is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-20-2006, 11:07 AM
     
  #88 (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

In reponse to ppt.exe, if its locked, nothing can be done in that state. cant be copied off, can't be upx'd while on the device. If I can't even copy it from one directory to my storage card using resco file explorer, the chances that the device would allow me to upx it while its in this state is slim.

The attached ppt above, if compressed and actually able to overright the rom file, I dont see a problem. I dont see how you would end up with two. In the UPX forums, somebody did compress ppt.exe and he said it ran fine. so im positive theres a way. somebody just needs to do it and say it can be done and show how to.

with the command line, i know im not the only one that codes here, someone needs to set us up teh bomb gui for it. small browse, select file or multiple file in a directory, and upx them all. i am concerned about the speed of our devices. it takes a few seconds on our desktop pc's to compress large files, its going to take quite some time at 400mhz.
 
robplatt is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-20-2006, 01:23 PM
     
  #89 (permalink)  
Too much time, not enough to do
halr9000's Avatar
Join Date: 11-26-2005
Location: Atlanta or thereabouts
PDAPhone: PPC-6700
Carrier: Sprint
Posts: 158
  Send a message via AIM to halr9000

Quote:
Originally Posted by robplatt
The attached ppt above, if compressed and actually able to overright the rom file, I dont see a problem. I dont see how you would end up with two.
You can overwrite it, but it's the OS just hiding the original ROM copy and adding your new copy. If you do a hard reset you'll be back to the original. If you delete the UPX'd copy, you'll also revert to the original. It's read/only, but MSFT had to account for the ability to patch read-only code.

The only way to compress all of the read-only stuff would be with a hacked ROM like they do for the XDAs.
__________________
Psi webmaster
psi-im.org
 
halr9000 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-20-2006, 01:24 PM
     
  #90 (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 i understand. they would be, literally, a shadowcopy. using up the original amount plus the compressed amount. GOTCHA.
 
robplatt is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-22-2006, 08:17 PM
     
  #91 (permalink)  
Too much time, not enough to do
halr9000's Avatar
Join Date: 11-26-2005
Location: Atlanta or thereabouts
PDAPhone: PPC-6700
Carrier: Sprint
Posts: 158
  Send a message via AIM to halr9000

Whoah. That was fast!!

http://www.freewarepocketpc.net/ppc-...d-upx4ppc.html

'UPX4PPC
pocket pc UPX4PPC freeware
• Summary: UPX4PPC is an application for you to compress EXE files. This program provides the GUI for working with UPX for compressing EXE files on the Pocket PC. You can save KBs or even MBs of memory by compressing the EXE files in your main memory or Storage Card. More info and usage is available here....'

Did anyone here write it?
__________________
Psi webmaster
psi-im.org
 
halr9000 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-23-2006, 03:16 AM
     
  #92 (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

whoever it was needs to add decompress
 
robplatt is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-23-2006, 03:36 AM
     
  #93 (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 dunno who wrote it but thanks for the heads up!

as far as decompress, it would surely be welcomed but in most cases right now, I just keep a backup on my storage card JIK for at least a couple of days till I now I'm safe...

hey, this program is a start, it can only get better...
 
malatesta is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-23-2006, 11:01 AM
     
  #94 (permalink)  
Too much time, not enough to do
halr9000's Avatar
Join Date: 11-26-2005
Location: Atlanta or thereabouts
PDAPhone: PPC-6700
Carrier: Sprint
Posts: 158
  Send a message via AIM to halr9000

You guys must not have run it yet. It includes both a decompress and keep backup option. I used it on a couple of files so far, works great.

edit: actually it's not immediately obvious. change the compression method to 'decompress' to do so.

Here's a screenshot from the website, apparently an older version which doesn't show the compression method listbox which appears between the filename table and the buttons.


edlt2: The program lets you know if a file is read/only and won't let you try to compress it.
__________________
Psi webmaster
psi-im.org

Last edited by halr9000 : 07-23-2006 at 11:09 AM.
 
halr9000 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-23-2006, 01:05 PM
     
  #95 (permalink)  
Themes Fanatic
Join Date: 06-22-2006
Location: Singapore
PDAPhone: None
Carrier: None
Posts: 16
 

Here's the updated screenshot:



http://mobile-sg.com/ppc/apps/?p=UPX4PPC
 
vicott is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-24-2006, 02:52 AM
     
  #96 (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
 

Thumbs up UPX4PPC: great!

Vicott,

Just want to say thanks for this program (and your others)!

It's small, intuitive, flexible (backups!) and of course it works. Fantastic job
Thumbs up
Thumbs up
Thumbs up
 
malatesta is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-25-2006, 01:50 AM
     
  #97 (permalink)  
Registered User
Join Date: 01-22-2006
Posts: 183
 

Here's what works and don't work for me:

Works:
Opera (with the button change in the "Go To" menu
Total Commander
TCPMP
PMVault
MortPlayer
XnView Pocket
Resco Radio (storage card)
Omega 1-Calc
iGuidanceQVGA (storage card) (from a whopping 2.36MB to a slim 694kb!)
PocketPlus (partially - "PlusTodayPluginMFC.dll" messes up the items menu. "PlusAppHook.dll" is fine to compress)

Overall, went from about 8.x MB free in storage to a healthy 14.6 MB
That's not including iGuidance and Resco Radio, which resides in my storage card!

What doesn't work
Today Agenda (popup menu's all messed up)
Tweaks2k2 (Can't compress - .Net exe not supported)
PocketPlus (read above)

Last edited by jambaj0e : 07-25-2006 at 02:13 AM.
 
jambaj0e is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-25-2006, 11:08 AM
     
  #98 (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 vicott
Here's the updated screenshot:



http://mobile-sg.com/ppc/apps/?p=UPX4PPC

the programmer wrote it for a treo 700w it looks like, or some other 240x240 device. it would be nice if he would autosize the listbox.... still. a great step. I'm glad I got this ball rollin.
 
robplatt is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-25-2006, 11:43 AM
     
  #99 (permalink)  
Themes Fanatic
Join Date: 06-22-2006
Location: Singapore
PDAPhone: None
Carrier: None
Posts: 16
 

Quote:
Originally Posted by robplatt
the programmer wrote it for a treo 700w it looks like, or some other 240x240 device. it would be nice if he would autosize the listbox.... still. a great step. I'm glad I got this ball rollin.
Yup, that's right. All my apps are designed such that they are compatible with square screens. And they are also compatible with QVGA landscape mode. The other minor reason is that I do not wish to have most SIPs cover any of the dialog controls.

Having the list box change the height dynamically is not as easy as it seems. First, it involves detecting the screen resolution of the device. Next, a redrawing of the whole dialog is required, so extra dialog templates have to be designed for different screen resolutions. That would be an overhead in size and also extra trouble in the software design. Designing a software that is compatible for square screens in the easiest way out.
 
vicott is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-25-2006, 11:45 AM
     
  #100 (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

I dont know what you wrote it in. Usually it only takes setting the height/width of the listbox accordingly. in .net its only a line or two to accomidate that function.
 
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 02:22 PM.

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