Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica >

$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
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF