SymbolicCGenerate
This feature is not supported on the Wolfram Cloud.

SymbolicCGenerate[cfun,name,opts]
generates symbolic C from the compiled function cfun using name as the exported function name.

DetailsDetails

  • 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

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

First, load the package:

In[1]:=
Click for copyable input

Generate symbolic C:

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

Convert the symbolic C into a string:

In[3]:=
Click for copyable input
Out[3]=
Translate this page: