represents a compiled component.
- 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 "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.
Examplesopen allclose all
Basic Examples (2)
Use CompiledComponent to add declarations to the compiler environment:
Wolfram Research (2022), CompiledComponent, Wolfram Language function, https://reference.wolfram.com/language/ref/CompiledComponent.html.
Wolfram Language. 2022. "CompiledComponent." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CompiledComponent.html.
Wolfram Language. (2022). CompiledComponent. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CompiledComponent.html