[Scummvm-devel] ScummVM binary size comparison
Neil Millstone
neil at millstone.demon.co.uk
Sun Nov 16 04:17:03 CET 2008
Hi everyone,
I applied the following fixes:
- Set the DISABLE_TEXT_CONSOLE and DISABLE_COMMAND_LINE defines.
- Rebuilt the theme to strip whitespace as suggested
With these, there is now 2028Kb of RAM in use at the launcher. So we've
trimmed 120Kb of fat, which is pretty good going! Another 60Kb and
we'll be were we were at 0.12.0 release time.
I haven't yet applied the font data fix.
The largest files in the DS port are now:
$ size */*.a |sort -nr |head -n 20
37786 0 0 37786 939a ThemeParser.o (ex gui/libgui.a)
37207 0 0 37207 9157 ThemeEngine.o (ex gui/libgui.a)
26642 0 0 26642 6812 launcher.o (ex gui/libgui.a)
21657 24 0 21681 54b1 options.o (ex gui/libgui.a)
17219 0 0 17219 4343 VectorRendererSpec.o (ex
graphics/libgraphics.a)
16883 0 0 16883 41f3 audiostream.o (ex sound/libsound.a)
16173 0 0 16173 3f2d about.o (ex gui/libgui.a)
15006 1172 2048 18226 4732 adlib.o (ex sound/libsound.a)
12868 0 33516 46384 b530 fmopl.o (ex sound/libsound.a)
11929 4 68 12001 2ee1 config-manager.o (ex
common/libcommon.a)
11568 0 0 11568 2d30 saveload.o (ex gui/libgui.a)
11473 0 0 11473 2cd1 advancedDetector.o (ex
common/libcommon.a)
11404 0 1024 12428 308c unarj.o (ex common/libcommon.a)
10667 0 0 10667 29ab widget.o (ex gui/libgui.a)
10411 0 0 10411 28ab console.o (ex gui/libgui.a)
10374 0 0 10374 2886 default-events.o (ex
backends/libbackends.a)
9749 1 24 9774 262e ym2612.o (ex sound/libsound.a)
9525 0 0 9525 2535 massadd.o (ex gui/libgui.a)
9302 0 4 9306 245a archive.o (ex common/libcommon.a)
8743 0 0 8743 2227 stream.o (ex common/libcommon.a)
I'm not sure why you can't build the code currently, Max. The two
header files you mentioned should be automatically built by the
makefile. This is something which hasn't changed since it was written.
Perhaps deleting the whole scummvm-A folder and rebuilding would make it
work?
Regards,
- Neil
More information about the Scummvm-devel
mailing list