is the collection of definitions typically used by FunctionCompile and related functions.


$CompilerEnvironment
is the collection of definitions typically used by FunctionCompile and related functions.
Details

- A new $CompilerEnvironment can be made with CreateCompilerEnvironment.
- Typically, the $CompilerEnvironment is suitable for the platform on which the Wolfram Compiler is running.
Examples
Basic Examples (2)
Use the default compiler environment in a compilation:
The target system for the default environment is typically that of the host platform:
Use FunctionDeclaration with the default compiler environment:
Now there is no need to use the CompilerEnvironment option:
The default compiler environment can be restored to its default state:
Tech Notes
Related Guides
History
Text
Wolfram Research (2021), $CompilerEnvironment, Wolfram Language function, 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_2025_$compilerenvironment, author="Wolfram Research", title="{$CompilerEnvironment}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/$CompilerEnvironment.html}", note=[Accessed: 14-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_$compilerenvironment, organization={Wolfram Research}, title={$CompilerEnvironment}, year={2021}, url={https://reference.wolfram.com/language/ref/$CompilerEnvironment.html}, note=[Accessed: 14-August-2025]}