[Mono-list] Compiling AOT

Miguel de Icaza miguel at novell.com
Tue Mar 10 18:54:21 EDT 2009


> I'm compiling my libraries AOT for the first time.  I notice the .so
> file is created is of simiar size to the original library so that begs
> the question, does compiling AOT double the footprint needs? (ie. if I
> compile all the mono libraries and my own libraries)

Code compiled with AOT is position independent code and the code is
loaded by using mmap.  

This means that:

	* If you run multiple processes, the code is only loaded

	* There are not writable/dirty pages in memory, the code is
	  backed by the kernel virtual system mapping to the file.

	* If you only run one Mono app at the time, you are paying
	  the extra price for the larger and slower AOT code.


More information about the Mono-list mailing list