$CompilerEnvironment
一般にFunctionCompileおよび関連関数で使われる定義の集合である.
詳細
- 新規の$CompilerEnvironmentはCreateCompilerEnvironmentで作ることができる.
- 一般に,$CompilerEnvironmentはWolfram Compilerが実行中のプラットフォームに適している.
例題
例 (2)
cf = FunctionCompile[Function[{Typed[arg, "Integer64"]}, arg + 1], CompilerEnvironment -> $CompilerEnvironment]一般に,デフォルト環境のターゲットのシステムはホストプラットフォームのそれである:
$CompilerEnvironment[TargetSystem]FunctionDeclarationをデフォルトのコンパイラ環境で使う:
CompilerEnvironmentAppendTo[{
FunctionDeclaration[AddTwo, Typed[{"Integer64"} -> "Integer64"]@Function[arg, 2 + arg]]}];これで,CompilerEnvironmentオプションを使う必要がなくなった:
cf = FunctionCompile[Function[{Typed[arg, "Integer64"]}, AddTwo[arg]]];cf[1]$CompilerEnvironment = CreateCompilerEnvironment[];テクニカルノート
関連するガイド
テキスト
Wolfram Research (2021), $CompilerEnvironment, Wolfram言語関数, https://reference.wolfram.com/language/ref/$CompilerEnvironment.html.
CMS
Wolfram Language. 2021. "$CompilerEnvironment." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/$CompilerEnvironment.html.
APA
Wolfram Language. (2021). $CompilerEnvironment. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$CompilerEnvironment.html
BibTeX
@misc{reference.wolfram_2026_$compilerenvironment, author="Wolfram Research", title="{$CompilerEnvironment}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/$CompilerEnvironment.html}", note=[Accessed: 12-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_$compilerenvironment, organization={Wolfram Research}, title={$CompilerEnvironment}, year={2021}, url={https://reference.wolfram.com/language/ref/$CompilerEnvironment.html}, note=[Accessed: 12-August-2026]}