2013-10-27 35 views
0

我想由於這個幫助捆綁我的mkbundle命令應用:mono mkbundle:mono_mkbundle_init()和JIT inizialization是什麼?

http://www.mono-project.com/Guide:Running_Mono_Applications#Bundles

,但我不明白這個文檔的這一部分:

With -c, the further option --nomain will generate the host.c file without a main method so that you can embed it as a library in an existing native application in which you are embedding the Mono runtime yourself. Just call mono_mkbundle_init() before initializing the JIT to make the bundled assemblies available.

這是絕對什麼我需要去做! 我也看了起來這個文檔: http://man.he.net/man1/mkbundle2

再次同一部分:

You may also use mkbundle to generate a bundle you can use when embed- 
    ding the Mono runtime in a native application. In that case, use both 
    the -c and --nomain options. The resulting host.c file will not have a 
    main() function. Call mono_mkbundle_init() before initializing the JIT 
    in your code so that the bundled assemblies are available to the embed- 
    ded runtime. 

我真的不知道什麼是mono_mkbundle_init()initializing the JIT ... 感謝名單

回答

0

mono_mkbundle_init()是由host.c中的mkbundle生成的函數 「初始化JIT」應該是單聲道函數mono_jit_init() 所以其含義是,將生成的c文件鏈接到本機應用程序並在調用mono_jit_init()之前調用mono_mkbundle_init()