FunctionCompileExport

FunctionCompileExport["file.ext",func]

exports a compiled version of func in the format specified by the file extension ext.

FunctionCompileExport[path,func,"format"]

exports in the specified format.

Details and Options

Examples

open all close all

Basic Examples  (1)

Export a compiled version of a function into a file:

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

The export format can be determined from the file name:

In[2]:=
Click for copyable input

The export format can be given explicitly:

In[3]:=
Click for copyable input

LLVM IR can be generated:

In[4]:=
Click for copyable input

Options  (1)

Introduced in 2019
(12.0)