CCodeGenerator`
CCodeGenerator`

LibraryGenerate

LibraryGenerate[cfun,name,opts]

generates a shared library from the compiled function cfun using the name as the exported function name.

更多信息和选项更多信息
  • To use LibraryGenerate, you first need to load it using Needs["CCodeGenerator`"].
  • LibraryGenerate can make standalone code or a Wolfram Library.
  • The Wolfram Language contains the necessary headers and libraries for standalone code.
  • The following option can be given:
  • "CodeTarget""WolframLibrary"the type of code to generate
  • 范例

    基本范例  (1)

    In[1]:=
    Click for copyable input

    Generate C code and compile it into a library:

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

    参见

    CCodeGenerate  CCodeStringGenerate  SymbolicCGenerate

    教程