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

$CompilationTarget

$CompilationTarget
给出 Compile 选项 CompilationTarget 的缺省值.
  • $CompilationTarget = 表明 Mathematica 编译器应为传统的 Mathematica 虚拟机产生代码.
  • $CompilationTarget = 表明 Mathematica 编译器应产生 C 代码, 编译为一个外部机器代码库,并链接回 Mathematica.
您可以在 Compile 中设置 $CompilationTarget 来产生 C 代码:
以下使用 C 代码进行编译:
您可以在 Compile 中设置 $CompilationTarget 来产生 C 代码:
In[1]:=
Click for copyable input
Out[1]=
以下使用 C 代码进行编译:
In[2]:=
Click for copyable input
Out[2]=
版本 8 的新功能
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
格式:   HTML  |  CDF