CompiledComponent
CompiledComponent[name]
represents a compiled component.
Details
- Compiled components can be used to represent a named group of compiler declarations.
- Compiled components can be used to represent compiled functionality that can be built into a shared library.
- Compiled components can be embedded in paclets.
- A compiled component is created by DeclareCompiledComponent.
- CompiledComponent objects can be used to add declarations for compilation.
- CompiledComponent objects can be used to discover details of a compiled component.
- CompiledComponent objects can be cleared with DeleteObject. »
- Fields of a compiled component can be accessed with CompiledComponent[name][field].
- CompiledComponent[name][All] returns an association of all fields in the component.
- Compiled components contain the following fields, which can be modified with DeclareCompiledComponent:
-
"Declarations" declarations to use with the component "InstalledFunctions" functions to compile and symbols into which to install the results "LibraryFunctions" functions to compile, to be recovered by LoadCompiledComponent "RawLibraryFunctions" functions to compile that are available as library exports "LoadingEpilogs" functions to be executed after the component is loaded by LoadCompiledComponent "ExternalLibraries" libraries to be loaded before the component is loaded by LoadCompiledComponent - The "InstalledFunctions" and "LibraryFunctions" fields contain the source to be compiled. BuildCompiledComponent builds that source and saves the result to a dynamic library. The dynamic library can be loaded with LoadCompiledComponent to recover the results of the compilation.
Examples
open allclose allBasic Examples (2)
Create a compiled component "demo" containing a declaration:
Use CompiledComponent in a call to FunctionCompile:
Use CompiledComponent to add declarations to the compiler environment:
Scope (1)
Wolfram Research (2022), CompiledComponent, Wolfram Language function, https://reference.wolfram.com/language/ref/CompiledComponent.html.
Text
Wolfram Research (2022), CompiledComponent, Wolfram Language function, https://reference.wolfram.com/language/ref/CompiledComponent.html.
CMS
Wolfram Language. 2022. "CompiledComponent." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CompiledComponent.html.
APA
Wolfram Language. (2022). CompiledComponent. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CompiledComponent.html