FunctionCompileExportString

FunctionCompileExportString[func]

gives a string of textual LLVM code obtained by compiling the function func.

FunctionCompileExportString[func,"format"]

gives a string of textual code in the specified format.

Details and Options

Examples

open allclose all

Basic Examples  (1)

Generate a compiled version of a function and return the resulting LLVM IR as a string:

The export format can be given explicitly:

Options  (1)

TargetSystem  (1)

The default setting of Automatic generates code for the machine architecture on which it is being run:

TargetSystem can be set to the $SystemID of the desired platform:

TargetSystem can be combined with different format settings:

TargetSystem can be set for architectures for which the Wolfram Engine does not exist:

Wolfram Research (2019), FunctionCompileExportString, Wolfram Language function, https://reference.wolfram.com/language/ref/FunctionCompileExportString.html.

Text

Wolfram Research (2019), FunctionCompileExportString, Wolfram Language function, https://reference.wolfram.com/language/ref/FunctionCompileExportString.html.

BibTeX

@misc{reference.wolfram_2020_functioncompileexportstring, author="Wolfram Research", title="{FunctionCompileExportString}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/FunctionCompileExportString.html}", note=[Accessed: 19-April-2021 ]}

BibLaTeX

@online{reference.wolfram_2020_functioncompileexportstring, organization={Wolfram Research}, title={FunctionCompileExportString}, year={2019}, url={https://reference.wolfram.com/language/ref/FunctionCompileExportString.html}, note=[Accessed: 19-April-2021 ]}

CMS

Wolfram Language. 2019. "FunctionCompileExportString." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/FunctionCompileExportString.html.

APA

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