$CompilationTarget

$CompilationTarget
gives the default value for the option CompilationTarget of Compile.

DetailsDetails

  • Possible settings for $CompilationTarget are those given for CompilationTarget.
  • The default setting for $CompilationTarget is .
  • $CompilationTarget = indicates that the Wolfram Language compiler should generate code for the traditional Wolfram Language virtual machine.
  • $CompilationTarget = 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.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

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

In[1]:=
Click for copyable input
Out[1]=

This runs the compilation using C code:

In[2]:=
Click for copyable input
Out[2]=
Introduced in 2010
(8.0)