[Mono-devel-list] New Mono compilation engine available.

Paolo Molaro lupus at ximian.com
Mon Apr 7 07:02:32 EDT 2003


On 04/06/03 Sebastian Bergmann wrote:
>      sb at wopr-mobile:~/ > mini --optimize=all scriptperf.exe
>      loop_test   500000 elapsed: 0.033
>      index_test   1000000 elapsed: 7.793
>      index_string_test   1000000 elapsed: 2.559
>      nested_int_test   23 elapsed: 0.029
>      nested_test   23 elapsed: 0.106
>      return_test   5000000 elapsed: 0.012
>      zsh: 1046 segmentation fault  mini --optimize=all scriptperf.exe

This is a issue with dead code elimination, I filed a bug report about it.

Hint: the -O and --optimize option allows also a syntax for excluding
optimizations. This is very useful for finding what optimization may
cause a bug. For example, to enable all the optimization but dead code
elimination and inlining, you can use:

	-O=all,-deadce,-inline

In the same way, if you want to enable just one optimization, use:

	-O=-all,deadce

>   Executing an .so binary generated using --aot causes a segfault as
>   well:

The .so binary is a shared library, you can't execute it directly.
mini will load it automatically whenever you try to execute the assembly
it was generated from.

lupus

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



More information about the Mono-devel-list mailing list