CreateCompilerEnvironment

CreateCompilerEnvironment[]

creates a compiler environment that can be used in FunctionCompile and related functions.

Details and Options

Examples

open allclose all

Basic Examples  (2)

Create a new compiler environment:

Add a function declaration:

Use the compiler environment in a compilation:

Create an environment for a specific platform:

Target systems of the new environment:

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.

Wolfram Research (2021), CreateCompilerEnvironment, Wolfram Language function, https://reference.wolfram.com/language/ref/CreateCompilerEnvironment.html.

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

BibTeX

@misc{reference.wolfram_2024_createcompilerenvironment, author="Wolfram Research", title="{CreateCompilerEnvironment}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/CreateCompilerEnvironment.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_createcompilerenvironment, organization={Wolfram Research}, title={CreateCompilerEnvironment}, year={2021}, url={https://reference.wolfram.com/language/ref/CreateCompilerEnvironment.html}, note=[Accessed: 21-November-2024 ]}