There is currently no way to do this. It may be possible, but it will take a lot of work. You will need to run mono in full AOT (ahead of time) compilation mode with LLVM codegen. But there are many problems:
- LLVM is currently not used for all methods, but mono returns to its own code generator in a number of cases. You need to either get LLVM support for all cases, or provide the JS code needed to use LLVM.
- Mono currently has several architecture-specific files (x86, amd64, arm, etc.) and will probably require an equivalent for JS, both for code generation and AOT runtime.
And so on...
joncham
source share