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)

Generate C code and compile it into a library:

Wolfram Research (2010),LibraryGenerate,Wolfram 语言函数,https://reference.wolfram.com/language/CCodeGenerator/ref/LibraryGenerate.html.

文本

Wolfram Research (2010),LibraryGenerate,Wolfram 语言函数,https://reference.wolfram.com/language/CCodeGenerator/ref/LibraryGenerate.html.

CMS

Wolfram 语言. 2010. "LibraryGenerate." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/CCodeGenerator/ref/LibraryGenerate.html.

APA

Wolfram 语言. (2010). LibraryGenerate. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/CCodeGenerator/ref/LibraryGenerate.html 年

BibTeX

@misc{reference.wolfram_2024_librarygenerate, author="Wolfram Research", title="{LibraryGenerate}", year="2010", howpublished="\url{https://reference.wolfram.com/language/CCodeGenerator/ref/LibraryGenerate.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_librarygenerate, organization={Wolfram Research}, title={LibraryGenerate}, year={2010}, url={https://reference.wolfram.com/language/CCodeGenerator/ref/LibraryGenerate.html}, note=[Accessed: 21-November-2024 ]}