CreateCompilerEnvironment
创建可在 FunctionCompile 和相关函数中使用的编译器环境.
更多信息和选项
- CreateCompilerEnvironment 返回 CompilerEnvironmentObject.
- 可以使用 CompilerEnvironmentAppendTo 将声明添加到 CompilerEnvironmentObject.
- 可以给出以下选项:
-
TargetSystem Inherited 作为目标的机器架构 - $TargetSystems 列表中给出了 TargetSystem 可取的值.
范例
打开所有单元 关闭所有单元选项 (1)
TargetSystem (1)
默认值为 Inherited,会生成当前平台的环境:
Automatic 设置创建多个核心平台:
可在 FunctionCompile 中使用:
CompiledCodeFunction 对象包含所有平台的代码:
技术笔记
相关指南
-
▪
- 代码编译 ▪
- C/C++ 语言接口
文本
Wolfram Research (2021),CreateCompilerEnvironment,Wolfram 语言函数,https://reference.wolfram.com/language/ref/CreateCompilerEnvironment.html.
CMS
Wolfram 语言. 2021. "CreateCompilerEnvironment." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/CreateCompilerEnvironment.html.
APA
Wolfram 语言. (2021). CreateCompilerEnvironment. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/CreateCompilerEnvironment.html 年
BibTeX
@misc{reference.wolfram_2025_createcompilerenvironment, author="Wolfram Research", title="{CreateCompilerEnvironment}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/CreateCompilerEnvironment.html}", note=[Accessed: 19-April-2026]}
BibLaTeX
@online{reference.wolfram_2025_createcompilerenvironment, organization={Wolfram Research}, title={CreateCompilerEnvironment}, year={2021}, url={https://reference.wolfram.com/language/ref/CreateCompilerEnvironment.html}, note=[Accessed: 19-April-2026]}