This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

$CompilationTarget

$CompilationTarget
gives the default value for the option CompilationTarget of Compile.
  • $CompilationTarget = indicates that the Mathematica compiler should generate code for the traditional Mathematica virtual machine.
  • $CompilationTarget = indicates that the Mathematica compiler should create C code, compile this to an external machine code library, and link back into Mathematica.
You can set $CompilationTarget to to generate C code from Compile:
This runs the compilation using C code:
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]=
New in 8