CreateCompilerEnvironment
creates a compiler environment that can be used in FunctionCompile and related functions.
Details and Options
- CreateCompilerEnvironment returns a CompilerEnvironmentObject.
- Declarations can be added to a CompilerEnvironmentObject with CompilerEnvironmentAppendTo.
- The following option can be given:
-
TargetSystem Inherited machine architectures to be targeted
Examples
open allclose allBasic Examples (2)
Options (1)
TargetSystem (1)
The default value of Inherited generates an environment for the current platform:
You can choose a target system for a specific platform:
You can choose several platforms:
You can see the target systems supported by an environment:
The setting Automatic creates a number of core platforms:
You can use this in FunctionCompile:
The CompiledCodeFunction object contains code for all of the platforms:
This is a useful way to carry out cross-compilations because the environments do not need to be created for each compilation.
Text
Wolfram Research (2021), CreateCompilerEnvironment, Wolfram Language function, https://reference.wolfram.com/language/ref/CreateCompilerEnvironment.html.
CMS
Wolfram Language. 2021. "CreateCompilerEnvironment." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CreateCompilerEnvironment.html.
APA
Wolfram Language. (2021). CreateCompilerEnvironment. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CreateCompilerEnvironment.html