$CompilationTarget

$CompilationTarget

gives the default value for the option CompilationTarget of Compile.

Details

  • Possible settings for $CompilationTarget are those given for CompilationTarget.
  • The default setting for $CompilationTarget is "WVM".
  • $CompilationTarget = "WVM" indicates that the Wolfram Language compiler should generate code for the traditional Wolfram Language virtual machine.
  • $CompilationTarget = "C" indicates that the Wolfram Language compiler should create C code, compile this to an external machine code library, and link back into the Wolfram Language.

Examples

Basic Examples  (1)

You can set $CompilationTarget to "C" to generate C code from Compile:

This runs the compilation using C code:

Wolfram Research (2010), $CompilationTarget, Wolfram Language function, https://reference.wolfram.com/language/ref/$CompilationTarget.html.

Text

Wolfram Research (2010), $CompilationTarget, Wolfram Language function, https://reference.wolfram.com/language/ref/$CompilationTarget.html.

CMS

Wolfram Language. 2010. "$CompilationTarget." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/$CompilationTarget.html.

APA

Wolfram Language. (2010). $CompilationTarget. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$CompilationTarget.html

BibTeX

@misc{reference.wolfram_2024_$compilationtarget, author="Wolfram Research", title="{$CompilationTarget}", year="2010", howpublished="\url{https://reference.wolfram.com/language/ref/$CompilationTarget.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_$compilationtarget, organization={Wolfram Research}, title={$CompilationTarget}, year={2010}, url={https://reference.wolfram.com/language/ref/$CompilationTarget.html}, note=[Accessed: 22-November-2024 ]}