[Mono-list] AOT compile a static library.

Ergwun geoffbattye at hotmail.com
Sun Mar 25 12:40:10 UTC 2012

Rolf Bjarne Kvinge-4 wrote
> No, this is not supported, because there are a lot of things that needs to
> happen behind the scenes for managed code to work properly (it's not just
> a matter of "export a list of methods to C").

Thanks for your reply Rolf.

We have already made C++ bindings so it can be used in a native C++ project
on Windows, Mac OS X and Linux that uses mono as a dynamic library and our
library as a .NET dll, and that works fine. I had hoped a similar approach
would work on iOS, but obviously we'd need to get rid of any JIT compilation
and dynamic libraries. I figured this is the same problem that Unity and
MonoTouch have already solved.

Would I be correct in assuming that while not currently supported, this
method would work in principle, we'll just have to modify Mono ourselves to
get it done?

> You can do the reverse: use native libraries in MonoTouch.
Since our library is already written in C#, it should already be possible to
use it in MonoTouch as is (maybe a few tweaks - I haven't tried it yet).

Mono-list maillist  -  Mono-list at .ximian

View this message in context: http://mono.1490590.n4.nabble.com/AOT-compile-a-static-library-tp4498008p4503101.html
Sent from the Mono - General mailing list archive at Nabble.com.

More information about the Mono-list mailing list