-
Notifications
You must be signed in to change notification settings - Fork 0
API Host CompilationMode
Liu.Yandong.Hanks edited this page Aug 19, 2026
·
3 revisions
控制生成代码如何输出和加载的枚举。
Controls how generated code is emitted and loaded.
命名空间:AuroraScript。类型:enum。
Namespace:
AuroraScript. Kind: enum.
Purpose
CompilationMode 是公开宿主类型。通过下方签名选择调用方式;对运行时对象、生命周期和异常,应由宿主在边界处明确处理。
Controls how generated code is emitted and loaded.
Enumeration Values
将编译程序集持久化输出到文件或流,可保存 DLL/PDB。
Persists compiled assembly output to a file or stream and can save DLL/PDB.
简单示例
var value = CompilationMode.Persistence;只在内存中编译和执行,不提供标准 PDB 调试。
Compiles and runs in memory only and does not provide standard PDB debugging.
简单示例
var value = CompilationMode.OnlyRun;编译为动态方法,适合常规高性能运行。
Compiles to a dynamic method for ordinary high-performance execution.
简单示例
var value = CompilationMode.Dynamic;AuroraScript.JIT 4.0.0 · Documentation Home · Repository · MIT License