TargetSystem
✖
TargetSystem
is an option for FunctionCompile and related functions that specifies machine architectures to be targeted.
Details

- TargetSystem can be used with FunctionCompile to specify additional architectures to embed in the output CompiledCodeFunction. This helps the output to be moved between different platforms without having to run the compilation again.
- TargetSystem can be used with FunctionCompileExport to specify the machine architecture for which output is generated.
- TargetSystem->Automatic specifies the machine architecture on which it is being run.
- Typical values for TargetSystem include the $SystemID of the desired architecture.
- Possible machine architectures are given by $TargetSystems.
Examples
Basic Examples (3)Summary of the most common use cases
TargetSystem can be used with FunctionCompile to specify additional platforms to be included in the result:

https://wolfram.com/xid/0dc0wdlvns7m-vy17xx


https://wolfram.com/xid/0dc0wdlvns7m-y7iv7f

The compiled code function can be moved to machines with a $SystemID of "MacOSX-x86-64", "Windows-x86-64" or "Linux-x86-64" and it will be ready to run without having to recompile the original code.
Generate LLVM IR for the 32-bit Linux ARM platform:

https://wolfram.com/xid/0dc0wdlvns7m-rxsu02

Possible machine architectures:

https://wolfram.com/xid/0dc0wdlvns7m-ows28q

Wolfram Research (2019), TargetSystem, Wolfram Language function, https://reference.wolfram.com/language/ref/TargetSystem.html.
Text
Wolfram Research (2019), TargetSystem, Wolfram Language function, https://reference.wolfram.com/language/ref/TargetSystem.html.
Wolfram Research (2019), TargetSystem, Wolfram Language function, https://reference.wolfram.com/language/ref/TargetSystem.html.
CMS
Wolfram Language. 2019. "TargetSystem." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TargetSystem.html.
Wolfram Language. 2019. "TargetSystem." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TargetSystem.html.
APA
Wolfram Language. (2019). TargetSystem. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TargetSystem.html
Wolfram Language. (2019). TargetSystem. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TargetSystem.html
BibTeX
@misc{reference.wolfram_2025_targetsystem, author="Wolfram Research", title="{TargetSystem}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/TargetSystem.html}", note=[Accessed: 06-April-2025
]}
BibLaTeX
@online{reference.wolfram_2025_targetsystem, organization={Wolfram Research}, title={TargetSystem}, year={2019}, url={https://reference.wolfram.com/language/ref/TargetSystem.html}, note=[Accessed: 06-April-2025
]}