Available for a limited time only - £10 off a £20 spend at eXpansys! For more details visit this topic!

Please Log In or Register - it's FREE!

 
Reply to this topicStart new topic
 Making the most of your storage space with UPX4PPC
Paul (MVP)
post Aug 15 2006, 12:51
Post #1


The Main Man
Group Icon

Group: Admin Team
Posts: 21,241
Joined: 6th November 2002
From: Norwich, UK
Member No.: 1

Device(s): HTC Touch HD



NOTE: A new UPX4PPC update has been released (view full topic for details), so i've 'bumped this back to news' wink.gif

Just recently we had a news post on MoDaCo announcing that UPX, the ' Ultimate Packer for eXecutables', had added ARM support. The significance of this, was that as well as compressing regular Windows executable files, it could now also compress Windows Mobile executables.

I'm very pleased to learn that there is now a version of UPX, complete with GUI, that will run directly on your Pocket PC!

As many of you will know, I have just become the proud owner of a SPV M3100. All good stuff, except I don't yet have a microSD, so space is somewhat at a premium. As a stop gap, I have wiped the ExtendedROM (aftter backing it up), and I am installing my essential apps there (to save main memory space). This soon filled up, then I remembered about UPX.

After doing some digging, I discovered this native version of UPX that runs on the device itself.

Full details / download etc. can be found at http://mobile-sg.com/ppc/apps/?p=UPX4PPC - but I can tell you straight away that it works (very well), and i've gained a ton of space in ExtendedROM to store more apps! smile.gif

Interested in getting started with UPX? Then follow these simple steps...

- Install UPX4PPC
- Run the app and select the EXE you want to compress
- ALWAYS SELECT THE BACKUP OPTION!
- Compress with maximum compression
- Test application still works correctly
- Delete or archive backup file

I've been doing this - most applications work fine, only the occasional one doesn't - so the backup phase IS important smile.gif

Let me know how you get on wink.gif

P

[Update 1: I've just tried to compress opera.dll on device and it hung, so i've compressed it using desktop UPX instead. Opera.dll, over 5MB, has compressed from 5386264 bytes to 1744408 bytes, leaving it only 32.39% of it's original size! ohmy.gif - see below! That's a serious memory saving!]



--------------------
Go to the top of the page
 
+Quote Post
Ingvarr
post Aug 15 2006, 13:52
Post #2


Professional
Group Icon

Group: Posters
Posts: 705
Joined: 1st January 2006
Member No.: 165,239

Device(s): Samsung i900



I wish there was some way to use transparent decompression for the whole ROM filesystems smile.gif
Go to the top of the page
 
+Quote Post
muff
post Aug 15 2006, 14:28
Post #3


Addict
Group Icon

Group: MoDaCo Plus
Posts: 938
Joined: 19th January 2003
Member No.: 2,098



UPX is great, been using it for years on desktops and on Smartphones and PPC's since it became ARM compatible biggrin.gif

and typically is used to compress the EXE not the dll's wink.gif


This post has been edited by muff: Aug 15 2006, 14:38
Go to the top of the page
 
+Quote Post
Ingvarr
post Aug 15 2006, 14:49
Post #4


Professional
Group Icon

Group: Posters
Posts: 705
Joined: 1st January 2006
Member No.: 165,239

Device(s): Samsung i900



Since dlls take much of distribution space, its quite pointless not to compress them.
After all, in Win32 exe and dll is pretty same file format.
Go to the top of the page
 
+Quote Post
Paul (MVP)
post Aug 15 2006, 15:21
Post #5


The Main Man
Group Icon

Group: Admin Team
Posts: 21,241
Joined: 6th November 2002
From: Norwich, UK
Member No.: 1

Device(s): HTC Touch HD



Exactly... compress whatever's taking the room DLL/EXE wise I say smile.gif

P


--------------------
Go to the top of the page
 
+Quote Post
Ingvarr
post Aug 15 2006, 15:26
Post #6


Professional
Group Icon

Group: Posters
Posts: 705
Joined: 1st January 2006
Member No.: 165,239

Device(s): Samsung i900



Done, WM5torage distro will be UPX-compressed from now on, so far so good.

Hope other Modaco devs will follow suit smile.gif
Go to the top of the page
 
+Quote Post
Paul (MVP)
post Aug 15 2006, 15:45
Post #7


The Main Man
Group Icon

Group: Admin Team
Posts: 21,241
Joined: 6th November 2002
From: Norwich, UK
Member No.: 1

Device(s): HTC Touch HD



I have mailed Opera to let them know they really should be considering this.

Question: I could quite quickly write an app that takes a CAB, extracts it and compresses all the EXEs and DLLs, then reCABs, allowing the end user to just get a CAB and ensure it is as efficient as possible before installing and testing.

Is there any appetite for such a tool?

P


--------------------
Go to the top of the page
 
+Quote Post
Ingvarr
post Aug 15 2006, 15:49
Post #8


Professional
Group Icon

Group: Posters
Posts: 705
Joined: 1st January 2006
Member No.: 165,239

Device(s): Samsung i900



I think "compress on install" can be better - so original cab in untouched, but it compresses dlls&exes just after extracting them from cab during install process. Wonder if there a way to hook into installer process.

But of course, such application can be used to achieve similar goal.
I think it will be quite useful.
Go to the top of the page
 
+Quote Post
Paul (MVP)
post Aug 15 2006, 16:05
Post #9


The Main Man
Group Icon

Group: Admin Team
Posts: 21,241
Joined: 6th November 2002
From: Norwich, UK
Member No.: 1

Device(s): HTC Touch HD



I could definitely build something into CABviaActiveSync. Actually, that might be the better way.

"UPX before installing?" prompt...

P


--------------------
Go to the top of the page
 
+Quote Post
wills
post Aug 15 2006, 18:38
Post #10


windows mobile fan
Group Icon

Group: Posters
Posts: 137
Joined: 18th January 2005
From: Kent, UK
Member No.: 105,790

Device(s): SPV M3100; Compact II;



Does compressing the exe's and dll's mean that there is slow down in running the apps on the WM device?


--------------------
Go to the top of the page
 
+Quote Post
Paul (MVP)
post Aug 15 2006, 19:00
Post #11


The Main Man
Group Icon

Group: Admin Team
Posts: 21,241
Joined: 6th November 2002
From: Norwich, UK
Member No.: 1

Device(s): HTC Touch HD



Not generally, generally the decompression speed is compensated for in reduced disk access time.

Hell, I can't see any difference in performance!

P


--------------------
Go to the top of the page
 
+Quote Post
encece
post Aug 16 2006, 01:49
Post #12


Blackjack'd
Group Icon

Group: Moderator Team
Posts: 4,205
Joined: 18th April 2003
From: Mt Laurel, NJ USA
Member No.: 4,796

Device(s): Motorola Q9h/iPhone



QUOTE(Paul (MVP) @ Aug 15 2006, 08:51) *
...except I don't yet have a microSD, so space is somewhat at a premium....


Write a utility that will hush all LEDs and you could win one! biggrin.gif


--------------------
Go to the top of the page
 
+Quote Post
SinisterJunkie
post Aug 19 2006, 18:28
Post #13


Enthusiast
Group Icon

Group: Posters
Posts: 191
Joined: 10th August 2004
From: West Hartford, CT, USA
Member No.: 52,424

Device(s): i730 (WM5) & i600



Thanks for the link to the PPC native version. I've been using UPX but don't always seem to get back to compressing each new version of my software. This will be nice to be able to compress right on the device, of course a compress on install option would be even better.

This post has been edited by SinisterJunkie: Aug 19 2006, 18:28


--------------------
-
SinisterJunkie

Go to the top of the page
 
+Quote Post
Paul (MVP)
post Jun 17 2008, 15:42
Post #14


The Main Man
Group Icon

Group: Admin Team
Posts: 21,241
Joined: 6th November 2002
From: Norwich, UK
Member No.: 1

Device(s): HTC Touch HD



This still-very-useful application has just had an update:

http://mobile-sg.com/software/?p=UPX4PPC&platform=ppc

Love it... bumped to news again smile.gif

P


--------------------
Go to the top of the page
 
+Quote Post
DarkWanderer
post Jun 20 2008, 09:17
Post #15


Newbie
Group Icon

Group: Posters
Posts: 38
Joined: 16th July 2007
Member No.: 278,541

Device(s): Wizard WM6.1, QTek 8500 WM6.1



Hi

This looks great and will definately be trying the Smartphone version on my QTek 8500. I have a query which is vaguely along the same lines (saving storage space). GoogleMaps will not install to storage card, I choose that option when installing but I still find it installed on the device afterwards. Anyone know what the problem is, or am I missing something obvious?


--------------------
Devices:
02 XDA Mini S running SNN WM6.1 Diamond Edition
Qtek 8500 running WM6.1 Clean v0.4
Go to the top of the page
 
+Quote Post
Paul (MVP)
post Jun 20 2008, 09:20
Post #16


The Main Man
Group Icon

Group: Admin Team
Posts: 21,241
Joined: 6th November 2002
From: Norwich, UK
Member No.: 1

Device(s): HTC Touch HD



It's a bug that Google haven't fixed yet wink.gif

P


--------------------
Go to the top of the page
 
+Quote Post
LordDeath
post Jun 22 2008, 19:57
Post #17


Newbie
Group Icon

Group: Posters
Posts: 4
Joined: 20th December 2006
Member No.: 218,767

Device(s): XDA Neo



You should consider, that UPXed applications will need more RAM, because the full executable has to be decompressed into the RAM. I tested it with Opera Mobile 8.x and the compressed version took over 4 MiB after the start, while the uncompressed one needed only 1,x MiB. So if you have a 64 MiB Ram device, too much UPXing is not that good. mellow.gif
Go to the top of the page
 
+Quote Post
Paul (MVP)
post Jun 24 2008, 09:17
Post #18


The Main Man
Group Icon

Group: Admin Team
Posts: 21,241
Joined: 6th November 2002
From: Norwich, UK
Member No.: 1

Device(s): HTC Touch HD



That is true...

P


--------------------
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

Similar Topics

  Topic Replies Topic Starter Views Last Action
No new Facebook on your mobile just got app'ed!
29 deadphill 7,344 Yesterday, 21:55
Last post by: jim.mason
No new Topic has attachmentsgames for the Omnia i900.
484 loquillo 260,879 Yesterday, 20:21
Last post by: Pistacchio
No new The touch HD is FINALLY available on O2!
49 Paul (MVP) 4,171 Yesterday, 20:31
Last post by: MrRalphMan
No New Posts [RESOLVED] Problem with G-Alarm ( and other alarm program' s) with S2U2
G-Alarm and S2U2 last version
8 Billou 363 Yesterday, 20:26
Last post by: melvynadam
No New Posts Tethering on the i900 with T-MobileWeb ($5.99)
Those who have it working, can you post .cabs please
0 Lucavi 31 Yesterday, 20:23
Last post by: Lucavi
No New Posts The Palm Pre topic
0 Paul (MVP) 25 Yesterday, 20:48
Last post by: Paul (MVP)

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 


RSS