I made a cramfs image of the app; that shrunk it from 5MB down to 2MB.
You can't mount cramfs images from tmpfs, so I made a little ramfs,
and loopback mounted it from there, then measured ram usage on a 64MB system
with the app both running and not running.
/bin/free reported (kb):
in tmpfs, not running: 47888
in tmpfs, running: 47244
in cramfs, not running:46972
in cramfs, running: 46336
Looks like I lose! Using cramfs to compress the app appears to
*waste* a megabyte over just using the noncompressed app.
except on MIPS with a hacked gcc.
OK, I've exhausted my stock of clever ideas; does anyone have
a suggestion about how to save RAM in my situation?
(gzexe won't do it, nor will upx, as they all create a temporary
uncompressed file on execution...)
Thanks,
Dan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/