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

- Possible values for "format" include:
-
"LLVM" LLVM intermediate code "Assembler" assembler for a specific architecture - The following options can be given:
-
CompilerOptions Automatic detailed options for the compilation pipeline TargetSystem Automatic $SystemID for the target architecture - With the setting TargetSystem->Automatic, FunctionCompileExportString will generate code for the machine architecture on which it is being run, including, for example, taking account of word length.
- In FunctionCompileExportString[func,…], func can be a CompiledCodeFunction object.
Examples
open allclose allBasic Examples (1)
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:
Text
Wolfram Research (2019), FunctionCompileExportString, Wolfram Language function, https://reference.wolfram.com/language/ref/FunctionCompileExportString.html.
BibTeX
BibLaTeX
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