is an option for FunctionCompile and related functions that allows definitions to be included in the compilation.
CompilerEnvironment
is an option for FunctionCompile and related functions that allows definitions to be included in the compilation.
Details
- With the typical default setting CompilerEnvironmentAutomatic , the definitions are those bundled with the Wolfram Compiler.
- A valid setting is a CompilerEnvironmentObject created with CreateCompilerEnvironment .
Examples
Basic Examples (1)
Create a compiler environment and add a function definition:
Use the compiler environment in a compilation:
The compilation uses the function declaration that was made:
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: 17-November-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: 17-November-2025]}