CompilerInformation

CompilerInformation[fun]

gives compiler-specific information about the function fun.

CompilerInformation[ty]

gives compiler-specific information about the type ty.

CompilerInformation[]

returns all functions and types known to the compiler.

Details and Options

  • The following option can be given:
  • CompilerEnvironment $CompilerEnvironmentthe compiler environment to use for information
  • For function inputs, the following properties can be given:
  • "ObjectType"the category of the information
    "Name"the name of the function
    "Declarations"the declarations of this function
  • For type inputs, the following properties can be given:
  • "ObjectType"the category of the information
    "TypeVariables"the variables of the type
    "AbstractTypes"abstract types that this type implements
    "Fields"fields that may be declared
    "Operations"operations that may be declared

Examples

open allclose all

Basic Examples  (4)

Return information known by the compiler for the function Dimensions:

There are a number of interactive elements that allow information about a specific implementation to be seen:

When information on types is requested, a different display is shown:

This also has interactive elements, which allows more detailed information to be displayed:

CompilerInformation can return all the information known to a compiler environment. Typically, this is quite large:

These are the declarations known to Dimensions:

These are the abstract types that "Integer64" implements:

These are the fields of the "HashTable" type:

Options  (1)

CompilerEnvironment  (1)

You can give a compiler environment with specific declarations:

Now you can see the compiler information on the declaration in the compiler environment:

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

Text

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

CMS

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

APA

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

BibTeX

@misc{reference.wolfram_2024_compilerinformation, author="Wolfram Research", title="{CompilerInformation}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/CompilerInformation.html}", note=[Accessed: 16-September-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_compilerinformation, organization={Wolfram Research}, title={CompilerInformation}, year={2024}, url={https://reference.wolfram.com/language/ref/CompilerInformation.html}, note=[Accessed: 16-September-2024 ]}