{"id":500,"date":"2023-02-27T19:31:27","date_gmt":"2023-02-27T11:31:27","guid":{"rendered":"http:\/\/pareto.fun\/?p=500"},"modified":"2023-02-27T19:34:45","modified_gmt":"2023-02-27T11:34:45","slug":"%e7%bf%bb%e8%af%91-il2cpp-%e9%80%86%e5%90%91-part1-helloworld-%e5%92%8cil2cpp%e5%b7%a5%e5%85%b7%e9%93%be","status":"publish","type":"post","link":"http:\/\/pareto.fun\/?p=500","title":{"rendered":"[\u7ffb\u8bd1] il2cpp \u9006\u5411 part1 : helloWorld \u548cil2cpp\u5de5\u5177\u94fe"},"content":{"rendered":"\n<p>\u5b66\u4e60\uff1a<\/p>\n\n\n\n<ul><li>\u4ec0\u4e48\u662fil2cpp\uff0c\u53d1\u6325\u4e86\u4ec0\u4e48\u4f5c\u7528<\/li><li>il2cpp\u751f\u6210\u7684C++\u4ee3\u7801\u957f\u4ec0\u4e48\u6837\u5b50\uff0c\u5e76\u901a\u8fc7\u4e00\u4e2a\u7b80\u5355\u7684\u51fd\u6570\u770b\u770b\u548c\u539f\u751fC#\u76f8\u6bd4 il \uff0cC++ \u7684\u4e8c\u8fdb\u5236\u53cd\u6c47\u7f16\u3002<\/li><li>\u5982\u4f55\u914d\u7f6e\u73af\u5883\u751f\u6210C++\u6e90\u7801\u548cC#\u5bf9\u5e94\u7684IL2CPP\u4e8c\u8fdb\u5236\u6587\u4ef6\uff0c\u65b9\u4fbf\u4f60\u7528\u6765\u5bf9\u6bd4\u5206\u6790<\/li><li>\u6ca1\u6709unity \uff0c\u5728\u547d\u4ee4\u884c\u4f7f\u7528il2cpp<\/li><\/ul>\n\n\n\n<h1 class=\"wp-block-heading\">il2cpp \u7b80\u4ecb<\/h1>\n\n\n\n<p>\u57282015\u5e74\u5f15\u5165\u7684\u90e8\u7f72\u65b9\u6848\uff0c\u663e\u8457\u63d0\u5347unity\u7684\u6e38\u620f\u6027\u80fd\u3002<\/p>\n\n\n\n<p>\u6807\u51c6\u7684Unity\u6e38\u620f\u7531.NET\u7a0b\u5e8f\u96c6\u7ec4\u6210\uff0c\u8fd9\u4e9b\u7a0b\u5e8f\u96c6\u4ea4\u7531\u5404\u5e73\u53f0\u7684\u89e3\u91ca\u5668\uff08CLR\uff09\u6267\u884c\u3002il2cpp \u5c31\u9700\u8981\u5148\u83b7\u53d6\u8fd9\u4e9b\u7a0b\u5e8f\u96c6 \uff0c\u89e3\u6790il \uff0c\u751f\u6210\u5bf9\u5e94\u7684C++\u4ee3\u7801\uff0c\u6700\u540e\u8f6c\u6362\u6210\u673a\u5668\u7801\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"754\" height=\"340\" src=\"http:\/\/pareto.fun\/wp-content\/uploads\/2023\/02\/image-9.png\" alt=\"\" class=\"wp-image-502\" srcset=\"http:\/\/pareto.fun\/wp-content\/uploads\/2023\/02\/image-9.png 754w, http:\/\/pareto.fun\/wp-content\/uploads\/2023\/02\/image-9-300x135.png 300w\" sizes=\"(max-width: 754px) 100vw, 754px\" \/><\/figure>\n\n\n\n<p>\u60f3\u8981\u6df1\u5165il2cpp\u53ef\u4ee5\u770b\u770b\u4e0b\u9762\u7684\u4e24\u7bc7\u6587\u7ae0\uff1a<\/p>\n\n\n\n<p><a href=\"https:\/\/blogs.unity3d.com\/2015\/05\/06\/an-introduction-to-ilcpp-internals\/\">https:\/\/blogs.unity3d.com\/2015\/05\/06\/an-introduction-to-ilcpp-internals\/<\/a> <\/p>\n\n\n\n<p><a href=\"https:\/\/jacksondunstan.com\/articles\/tag\/il2cpp\">https:\/\/jacksondunstan.com\/articles\/tag\/il2cpp<\/a> <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>il2cpp\u6539\u53d8\u4e86\u4f20\u7edfUnity\u7684\u9006\u5411\u8fc7\u7a0b\uff0c\u6211\u4eec\u4ece.net \u7a0b\u5e8f\u96c6\u5206\u6790\u6df1\u5165\u5230\u66f4\u5e95\u5c42\u7684\u53cd\u6c47\u7f16\u3002\u4e3a\u4e86\u8ba9\u5206\u6790\u66f4\u5bb9\u6613\uff0c \u9700\u8981\u5bf9IL2CPP\u6709\u8f83\u6df1\u7684\u7406\u89e3\uff0c\u4e5f\u662f\u8fd9\u4e2a\u7cfb\u5217\u7684\u76ee\u7684\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u8ffd\u8e2a\u8def\u5f84\uff1a Hello World <\/h2>\n\n\n\n<p>\u4ee5helloworld\u4e3a\u4f8b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>using System;\n \nnamespace HelloWorld\n{\n    class Program\n    {\n        static void Main(string&#91;] args) {\n            var a = 1;\n            var b = 2;\n            Console.WriteLine(\"Hello World: {0}\", a + b);\n        }\n    }\n}<\/code><\/pre>\n\n\n\n<p>\u4f60\u53ef\u80fd\u89c9\u5f97IL2CPP \u4f1a\u5c06\u4ee3\u7801\u8f6c\u6362\u6210\u8fd9\u6837<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#include &lt;stdio.h&gt;\n \nint main(int argc, char **argv) {\n    int a = 1;\n    int b = 2;\n    printf(\"Hello world: %d\\r\\n\", a + b);\n}<\/code><\/pre>\n\n\n\n<p>\u5b9e\u9645<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ System.Void HelloWorld.Program::Main(System.String&#91;])\nIL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Program_Main_m7A2CC8035362C204637A882EDBDD0999B3D31776 (StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* ___args0, const RuntimeMethod* method)\n{\n    static bool s_Il2CppMethodInitialized;\n    if (!s_Il2CppMethodInitialized)\n    {\n        il2cpp_codegen_initialize_method (Program_Main_m7A2CC8035362C204637A882EDBDD0999B3D31776_MetadataUsageId);\n        s_Il2CppMethodInitialized = true;\n    }\n    int32_t V_0 = 0;\n    int32_t V_1 = 0;\n    {\n        V_0 = 2;\n        int32_t L_0 = V_0;\n        V_1 = ((int32_t)il2cpp_codegen_add((int32_t)1, (int32_t)L_0));\n        int32_t L_1 = V_1;\n        int32_t L_2 = L_1;\n        RuntimeObject * L_3 = Box(Int32_t585191389E07734F19F3156FF88FB3EF4800D102_il2cpp_TypeInfo_var, &amp;L_2);\n        IL2CPP_RUNTIME_CLASS_INIT(Console_t5C8E87BA271B0DECA837A3BF9093AC3560DB3D5D_il2cpp_TypeInfo_var);\n        Console_WriteLine_m22F0C6199F705AB340B551EA46D3DB63EE4C6C56(_stringLiteral331919585E3D6FC59F6389F88AE91D15E4D22DD4, L_3, \/*hidden argument*\/NULL);\n        return;\n    }\n}\n<\/code><\/pre>\n\n\n\n<p>IL@CPP \u662f\u4ee5\u7a0b\u5e8f\u96c6\u7684IL\u4ee3\u7801\u4f5c\u4e3a\u8f93\u5165\uff0c\u800c\u4e0d\u662fC#\u6e90\u7801 \uff0c \u6240\u4ee5\u7b2c\u4e00\u6b65\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ldc.i4.1\nstloc.0\nldc.i4.2\nstloc.1\nldstr \"Hello World: {0}\"\nldloc.0\nldloc.1\nadd\nbox System.Int32\ncall System.Void System.Console::WriteLine(System.String,System.Object)\nret<\/code><\/pre>\n\n\n\n<p>IL\u662f\u57fa\u4e8e\u6808\u7684\u4f2a\u4ee3\u7801 \uff0c IL2CPP \u4f1a\u6309\u884c\u626b\u63cf IL \u5b57\u8282\u7801 \u5e76\u5c06\u5b83\u8f6c\u6362\u6210\u4e0d\u662f\u57fa\u4e8e\u6808\u7684C++\u4ee3\u7801\uff0c\u6240\u4ee5\u6211\u4eec\u4f1a\u5728C++\u4ee3\u7801\u949f\u770b\u5230\u5197\u4f59\u7684\u53d8\u91cf\u548c\u8d4b\u503c\u8bed\u53e5\u3002<\/p>\n\n\n\n<p>il2cpp_codegen_add \u5904\u7406\u8868\u8fbe\u5f0f\u201da+b&#8221; \u4e2d \u201d+\u201c\u7684\u64cd\u4f5c\u7b26\u91cd\u8f7d \uff0cIL2CPP_RUNTIME_CLASS_INIT \u786e\u4fdd\u5728\u88ab\u8d4b\u503c\u524d\u5df2\u7ecf\u88ab\u5b83\u7684\u9759\u6001\u521d\u59cb\u5316\u51fd\u6570\u521b\u5efa\u3002\u4f8b\u5982\u5728Console.WriteLine\u3002\u51fd\u6570\u5934\u90e8\uff0c\u5bf9\u4e8e\u6bcf\u4e2a\u9759\u6001\u65b9\u6cd5\u90fd\u6709\u5e03\u5c14\u503c\u7684\u5224\u65ad\uff0c\u6765\u786e\u4fdd\u6b63\u5e38\u7684\u521d\u59cb\u5316\uff0c\u4f46\u662f\u4e3a\u4ec0\u4e48\u8981\u8fd9\u4e48\u505a\u5462\uff1f<\/p>\n\n\n\n<p>\u5f88\u660e\u663e\uff0c\u5982\u679c\u4f60\u5728\u9006\u5411\u6e38\u620f\uff0c\u4f60\u6ca1\u6709Untiy\u9879\u76ee\u770b\u4e0d\u5230\u4ea7\u751f\u7684C++\u4ee3\u7801\uff0c\u4f46\u662f\u4f60\u5982\u679c\u4e86\u89e3\u4eceC#\u8f6c\u6362\u6210C++\u4ee3\u7801\u7684\u6d41\u7a0b\uff0c\u80fd\u5bf9\u4f60\u6e38\u620f\u5206\u6790\u8fc7\u7a0b\u4ea7\u751f\u5e2e\u52a9\u3002<\/p>\n\n\n\n<p>\u5148\u770bx64 C++\u7248\u672c\u7684\u53cd\u6c47\u7f16\u4ee3\u7801<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>; int __cdecl main(int argc, const char **argv, const char **envp)\nmain proc near\nsub     rsp, 28h\nmov     edx, 3\nlea     rcx, _Format    ; \"Hello world: %d\\n\"\ncall    printf\nxor     eax, eax\nadd     rsp, 28h\nretn\nmain endp<\/code><\/pre>\n\n\n\n<p>IL2CPP\u7248\u7684\u957f\u8fd9\u6837<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>; void __fastcall Program_Main_m2325437134(Il2CppObject *__this, StringU5BU5D_t1642385972 *___args0, MethodInfo *method)\nProgram_Main_m2325437134 proc near\npush    rbx\nsub     rsp, 20h\ncmp     cs:s_Il2CppMethodInitialized_8016, 0\njnz     short loc_14038BFF1\nmov     ecx, cs:?Program_Main_m2325437134_MetadataUsageId@@3IB\ncall    ?InitializeMethodMetadata@MetadataCache@vm@il2cpp@@SAXI@Z\nmov     cs:s_Il2CppMethodInitialized_8016, 1\nloc_14038BFF1:\nmov     rcx, cs:?Int32_t2071877448_il2cpp_TypeInfo_var@@3PEAUIl2CppClass@@EA\nlea     rdx, &#91;rsp+48h]\nmov     dword ptr &#91;rsp+48h], 3\ncall    ?Box@Object@vm@il2cpp@@SAPEAUIl2CppObject@@PEAUIl2CppClass@@PEAX@Z\nmov     rcx, cs:?Console_t2311202731_il2cpp_TypeInfo_var@@3PEAUIl2CppClass@@EA\nmov     rbx, rax\ntest    byte ptr &#91;rcx+10Ah], 1\njz      short loc_14038C02B\ncmp     dword ptr &#91;rcx+0BCh], 0\njnz     short loc_14038C02B\ncall    ?ClassInit@Runtime@vm@il2cpp@@SAXPEAUIl2CppClass@@@Z\nloc_14038C02B:\nmov     rdx, cs:?_stringLiteral3443654334@@3PEAUString_t2029220233@@EA\nxor     r9d, r9d\nmov     r8, rbx\nxor     ecx, ecx\ncall    Console_WriteLine_m3776981455\nadd     rsp, 20h\npop     rbx\nretn\nProgram_Main_m2325437134 endp<\/code><\/pre>\n\n\n\n<p>\u53ef\u4ee5\u770b\u51fa\u8981\u7406\u89e3IL2CPP\u4e00\u4e2a\u65b9\u6cd5\u7684\u53cd\u6c47\u7f16\uff0c\u9700\u8981\u660e\u767dIL2CPP\u63d0\u4f9b\u5173\u952e\u6570\u636e\u7ed3\u6784\u548c\u5185\u90e8API\uff0c\u6211\u4eec\u7528\u4e00\u4e2a\u7b80\u5355\u7684\u4f8b\u5b50\u6765\u6316\u6398il2cpp\u7684\u6d41\u7a0b\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u7528il2cpp\u6765\u751f\u6210\u4ee3\u7801<\/h3>\n\n\n\n<ol><li>\u521b\u5efa\u7a7a\u7684Unity\u9879\u76ee\uff0c\u8bbe\u7f6escripting backend \u4e3ail2cpp\uff0c\u6dfb\u52a0\u4ee3\u7801\uff0cbuild\u3002<\/li><li>\u76f4\u63a5\u547d\u4ee4\u884c\u4f7f\u7528il2cpp.exe \u7684\u547d\u4ee4\u884c\u5de5\u5177\u3002<\/li><\/ol>\n\n\n\n<p>Il2CppInspector \u63d0\u4f9b\u4e86\u7cbe\u7b80\u7684\u65b9\u5f0f\u6765\u751f\u6210\u4ee3\u7801\uff0c\u540e\u9762\u4f1a\u8bb2\u3002\uff08\u6211\u5c31\u4e0d\u8bb2\u4e86\uff09<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Unity\u4f7f\u7528il2cpp\u751f\u6210\u4ee3\u7801<\/h4>\n\n\n\n<ol><li>\u7528UnityHub\u521b\u5efa\u9879\u76ee<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/katyscode.files.wordpress.com\/2020\/06\/image.png?w=846\" alt=\"\"\/><\/figure>\n\n\n\n<p>2. File -&gt; Build Setting  \u9009\u62e9PC  , MAC ,linux IOS \u6216\u8005android\u7684\u4efb\u4f55\u4e00\u79cd<\/p>\n\n\n\n<p>3. Player Setting  Player -&gt; Other Setting -&gt; Configuration , \u5c06Scripting Backend \u4fee\u6539\u4e3ail2cpp \uff0c \u786e\u4fddC++ compiler \u8bbe\u7f6e\u6210release\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/katyscode.files.wordpress.com\/2020\/06\/scriptingbackend.png?w=395\" alt=\"\"\/><\/figure>\n\n\n\n<p>4. \u628a\u4f60\u8981\u7528\u7684\u6e90\u4ee3\u7801\u653e\u5230Project\u6807\u7b7e\u4e0bAssets\u6587\u4ef6\u5939\u3002<\/p>\n\n\n\n<p>5. File -&gt; Build Setting ,\u70b9\u51fbBuild \u9009\u62e9\u5b58\u653e\u7684\u6587\u4ef6\u5939<\/p>\n\n\n\n<p>\u53ef\u4ee5\u6ce8\u610f\u7684\u751f\u6210\u6587\u4ef6\uff1a<\/p>\n\n\n\n<p>Mono\u7f16\u8bd1\uff1a<\/p>\n\n\n\n<p><code>Test_BackUpThisFolder_ButDontShipItWithYourGame\\Managed\\Assembly-CSharp.dll<\/code>.<\/p>\n\n\n\n<p>IL2CPP\u751f\u6210\u7684C++\u4ee3\u7801<\/p>\n\n\n\n<p><code>Test_BackUpThisFolder_ButDontShipItWithYourGame\\il2cppOutput<\/code>.<\/p>\n\n\n\n<p>C++\u7f16\u8bd1\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6:&nbsp;<code>GameAssembly.dll<\/code><\/p>\n\n\n\n<p>il2cpp\u4ea7\u751f\u7684metadata\u6587\u4ef6<code>Test_Data\\il2cpp_data\\Metadata\\global-metadata.dat<\/code>.<\/p>\n\n\n\n<p>\uff08Unity 2019.3.1f1\u7248\u672c\u7684\u8f93\u51fa\u6587\u4ef6\uff09<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">il2cpp\u547d\u4ee4\u884c<\/h4>\n\n\n\n<p>il2cpp \u662f\u4e00\u5957\u72ec\u7acb\u7684\u5de5\u5177\u94fe \uff0c \u6211\u4eec\u53ef\u4ee5\u5728Unity\u5b89\u88c5\u8def\u5f84\u7684Editor\\Data\u4e0b\u770b\u5230\uff1a<\/p>\n\n\n\n<p><code>il2cpp<\/code><br><code>Mono<\/code>&nbsp;<em>or<\/em>&nbsp;<code>MonoBleedingEdge<\/code>&nbsp;(depending on version; new versions of Unity use the latter)<br><code>PlaybackEngines\\AndroidPlayer<\/code>&nbsp;(if building for Android)<br><code>PlaybackEngines\\windowsstandalonesupport<\/code>&nbsp;(if building for Win32; not needed for UWP)<\/p>\n\n\n\n<p>\u5982\u679c\u5e73\u53f0\u662fandroid \u90a3\u8fd8\u9700\u8981\u4e0b\u8f7dandroid NDK\u3002<\/p>\n\n\n\n<p>\u590d\u5236\u8fd9\u4e9b\u76ee\u5f55\u5230\u65b0\u7684\u76ee\u5f55\uff0c\u8fd9\u5c31\u662f\u4f60\u7684IL2CPP\u5de5\u5177\u94fe\u4e86 \uff0c \u7136\u540e\u7f16\u5199Hello World \u5b9e\u4f8b\u5c31\u6709\u4e00\u4e2a\u6d4b\u8bd5\u7528\u7684\u7f16\u8bd1\u6d41\u7a0b\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>il2cpp.exe \u6709\u4e0d\u540c\u7684\u7248\u672c\uff0c\u548c\u5f88\u591a\u7684\u53c2\u6570\uff0c\u4e0d\u540c\u7684\u53c2\u6570\u4f1a\u4ea7\u751f\u53ca\u5176\u4e0d\u540c\u7ed3\u679c\uff0c\u6240\u6709\u5177\u4f53\u6e38\u620f\u7684\u53cd\u6c47\u7f16\u53d6\u51b3\u4e8e\u5de5\u7a0b\u5e08\u4f7f\u7528\u7684\u7f16\u8bd1\u9009\u9879\uff0c<\/p>\n\n\n\n<ul><li><code>--convert-to-cpp<\/code>&nbsp;converts the input assemblies to C++<\/li><li><code>--compile-cpp<\/code>&nbsp;compiles the C++ to executable machine code<\/li><li><code>--libil2cpp-static<\/code>&nbsp;bundles libil2cpp in with the executable. You should always specify this option as it is how software is shipped<\/li><li><code>--platform<\/code>&nbsp;is the target build platform, eg.&nbsp;<code>WindowsDesktop<\/code>,&nbsp;<code>Android<\/code>&nbsp;etc.<\/li><li><code>--architecture<\/code>&nbsp;is the target architecture, eg.&nbsp;<code>x86<\/code>,&nbsp;<code>x64<\/code>,&nbsp;<code>ARMv7<\/code><\/li><li><code>--configuration<\/code>&nbsp;is the build configuration to use. Normally you will want to use&nbsp;<code>Release<\/code>&nbsp;to produce code most similar to that shipped with games<\/li><li><code>--dotnetprofile=\"unityaot\"<\/code>&nbsp;sets the .NET profile (later versions of IL2CPP require this to avoid errors)<\/li><li><code>--forcerebuild<\/code>&nbsp;will force the C++ to be re-generated even if it already exists<\/li><li><code>--assembly<\/code>&nbsp;is a comma-separated list of assemblies to compile<br>OR<br><code>--directory<\/code>&nbsp;is a comma-separated list of directories containing assemblies to compile<\/li><li><code>--outputpath<\/code>&nbsp;specifies where to save the compiled executable binary<\/li><li><code>--generatedcppdir<\/code>&nbsp;specifies where to save the generated C++ code<\/li><li><code>--verbose<\/code>&nbsp;enables verbose output<\/li><\/ul>\n\n\n\n<p>\u7f16\u8bd1Android\u9879\u76ee\u65f6 \uff0c \u589e\u52a0<\/p>\n\n\n\n<ul><li><code>--additional-include-directories=&lt;path to your AndroidPlayer folder&gt;\/Tools\/bdwgc\/include<\/code><\/li><li><code>--additional-include-directories=&lt;path to your AndroidPlayer folder&gt;\/Tools\/libil2cpp\/include<\/code><\/li><li><code>--tool-chain-path=&lt;path to the android NDK&gt;<\/code><\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">\u5b9e\u4f8b<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>il2cpp.exe ^\n  --assembly=HelloWorld.exe ^\n  --outputpath=HelloIl2Cpp.exe ^\n  --libil2cpp-static ^\n  --convert-to-cpp ^\n  --compile-cpp ^\n  --generatedcppdir=Cpp ^\n  --verbose<\/code><\/pre>\n\n\n\n<p>\u8981\u7f16\u8bd1windows32\u4f4d<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>il2cpp.exe ^\n  --convert-to-cpp ^\n  --emit-null-checks ^\n  --enable-array-bounds-check ^\n  --dotnetprofile=\"unityaot\" ^\n  --compile-cpp ^\n  --libil2cpp-static ^\n  --platform=\"WindowsDesktop\" ^\n  --architecture=\"x86\" ^\n  --configuration=\"Release\" ^\n  --outputpath=Output ^\n  --map-file-parser=\"il2cpp\\MapFileParser\\MapFileParser.exe\" ^\n  --directory=InputAssemblies ^\n  --generatedcppdir=Cpp ^\n  --verbose ^<\/code><\/pre>\n\n\n\n<p>\u7f16\u8bd1android<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>il2cpp.exe ^\n  --convert-to-cpp ^\n  --emit-null-checks ^\n  --enable-array-bounds-check ^\n  --dotnetprofile=\"unityaot\" ^\n  --compile-cpp ^\n  --libil2cpp-static ^\n  --platform=\"Android\" ^\n  --architecture=\"ARMv7\" ^\n  --configuration=\"Release\" ^\n  --outputpath=Output ^\n  --additional-include-directories=\"PlaybackEngines\/AndroidPlayer\/Tools\\bdwgc\/include\" ^\n  --additional-include-directories=\"PlaybackEngines\/AndroidPlayer\/Tools\\libil2cpp\/include\" ^\n  --tool-chain-path=\"PlaybackEngines\/AndroidPlayer\/NDK\" ^\n  --map-file-parser=\"il2cpp\\MapFileParser\\MapFileParser.exe\" ^\n  --directory=InputAssemblies ^\n  --generatedcppdir=Cpp ^\n  --verbose ^<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote\"><p><a href=\"https:\/\/katyscode.wordpress.com\/2020\/06\/24\/il2cpp-part-1\/\">IL2CPP Reverse Engineering Part 1: Hello World and the IL2CPP&nbsp;Toolchain<\/a> <\/p><cite><em>\u539f\u6587\u5730\u5740<\/em><\/cite><\/blockquote>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b66\u4e60\uff1a \u4ec0\u4e48\u662fil2cpp\uff0c\u53d1\u6325\u4e86\u4ec0\u4e48\u4f5c\u7528 il2cpp\u751f\u6210\u7684C++\u4ee3\u7801\u957f\u4ec0\u4e48\u6837\u5b50\uff0c\u5e76\u901a\u8fc7\u4e00\u4e2a\u7b80\u5355\u7684 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[18],"tags":[47,46,49],"_links":{"self":[{"href":"http:\/\/pareto.fun\/index.php?rest_route=\/wp\/v2\/posts\/500"}],"collection":[{"href":"http:\/\/pareto.fun\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/pareto.fun\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/pareto.fun\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/pareto.fun\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=500"}],"version-history":[{"count":5,"href":"http:\/\/pareto.fun\/index.php?rest_route=\/wp\/v2\/posts\/500\/revisions"}],"predecessor-version":[{"id":508,"href":"http:\/\/pareto.fun\/index.php?rest_route=\/wp\/v2\/posts\/500\/revisions\/508"}],"wp:attachment":[{"href":"http:\/\/pareto.fun\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=500"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/pareto.fun\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=500"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/pareto.fun\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=500"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}