CCodeGenerator`
CCodeGenerator`

SymbolicCGenerate

SymbolicCGenerate[cfun,name,opts]

generates symbolic C from the compiled function cfun using name as the exported function name.

Details

  • To use SymbolicCGenerate, you first need to load it using Needs["CCodeGenerator`"].
  • SymbolicCGenerate can make standalone code or a Wolfram Library.
  • The Wolfram Language contains the necessary headers and libraries for standalone code.
  • You can generate a header for the generated code by setting "CodeTarget" to "WolframRTLHeader".
  • The following option can be given:
  • "CodeTarget""WolframRTL"the type of code to generate

Examples

Basic Examples  (1)

First, load the package:

Generate symbolic C:

Convert the symbolic C into a string:

Wolfram Research (2010), SymbolicCGenerate, Wolfram Language function, https://reference.wolfram.com/language/CCodeGenerator/ref/SymbolicCGenerate.html.

Text

Wolfram Research (2010), SymbolicCGenerate, Wolfram Language function, https://reference.wolfram.com/language/CCodeGenerator/ref/SymbolicCGenerate.html.

BibTeX

@misc{reference.wolfram_2021_symboliccgenerate, author="Wolfram Research", title="{SymbolicCGenerate}", year="2010", howpublished="\url{https://reference.wolfram.com/language/CCodeGenerator/ref/SymbolicCGenerate.html}", note=[Accessed: 23-September-2021 ]}

BibLaTeX

@online{reference.wolfram_2021_symboliccgenerate, organization={Wolfram Research}, title={SymbolicCGenerate}, year={2010}, url={https://reference.wolfram.com/language/CCodeGenerator/ref/SymbolicCGenerate.html}, note=[Accessed: 23-September-2021 ]}

CMS

Wolfram Language. 2010. "SymbolicCGenerate." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/CCodeGenerator/ref/SymbolicCGenerate.html.

APA

Wolfram Language. (2010). SymbolicCGenerate. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/CCodeGenerator/ref/SymbolicCGenerate.html