[Mono-dev] .NET Micro Framework Platform

Paolo Molaro lupus at ximian.com
Thu Oct 12 10:14:08 EDT 2006


On 10/11/06 Leszek Ciesielski wrote:
> > Not by us at Novell. The mono codebase can be tweaked to run with 3 MB
> > of disk space and 3-4 MB of RAM (plus the stuff required by the system
> > and your app). So it covers the uses cases of both the Compact and
> > regular .Net framework.
> How would one do that? Are there any documents regarding such tailoring?

I'll try to find the time to write a small document, but you may want to
use google for some of my other comments on this topics.
The mono JIT + mscorlib is already 3.7 MB. You can use the configure
--enable-minimal switch to configure out some features (see configure
--help). Some of the options are not actually implemented, but it is
trivial to do so: just add the proper #ifdefs in the code, test the
build and submit the patch.
Then you can drop support for unused locales, see the comments
in tools/locale-builder/Makefile.am.
Similar savings can be had by removing some collation tables.
Compiling with CFLAGS=-Os saves 300+ KB as well
And the GC can be built with the small heap option.
Similarly you can remove all the types in the assemblies that you don't
use (a tool to do this semi-automatically has been developed during the
summer, see the cecil module in svn).

lupus

-- 
-----------------------------------------------------------------
lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better



More information about the Mono-devel-list mailing list