package
0.0.0-20230226003218-1dd1f65bfa42
Repository: https://github.com/c4-project/c4t.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
Package optlevel contains types that capture information about compiler optimisation levels.

# Functions

MockPower9GCCOpt produces a GCC-compatible instance with Power9 architecture and optimisation configuration.
MockSet produces a mock compiler set.
MockX86Gcc produces a GCC-compatible instance with X86 architecture.
NewJob is a convenience constructor for compiles.
OnCompilerConfig sends an OnCompilerConfig message to each observer in obs.
OnCompilerConfigEnd sends an compiler config-end message to each observer in obs.
OnCompilerConfigStart sends a compiler config-start message to each observer in obs.
OnCompilerConfigStep sends an compiler config-step message to each observer in obs.
SelectLevels selects from in the optimisation levels permitted by the configuration c.
SelectMOpts selects from in the machine optimisation profiles (-march, etc.) permitted by the configuration c.

# Constants

Exe refers to executable binary compilations.
Obj refers to object file compilations.

# Variables

ErrCompilerMissing occurs when we can't find the compiler with a given name.
ErrConfigNil occurs if we try to select optimisation levels for a nil compiler.
ErrNoSuchLevel occurs if a Selection enables an optimisation level that isn't available.

# Structs

Compiler represents fully prepared baseline configuration for a compiler.
Instance represents a fully configured instance of a compiler.
Job represents a request to compile a list of files to a particular target given a particular compiler.
Message is the type of builder observation messages.
Named wraps an Instance with its ID.

# Interfaces

Inspector is the interface of types that support optimisation level lookup.
Observer is the interface for things that observe the production of compiler configurations.
Prober is the interface of types that support compiler probing.

# Type aliases

Config denotes raw configuration for a Compiler.
ConfigMap is a map of raw compiler configuration.
InstanceMap is shorthand for a map from compiler IDs to instantiated compilers.
Target is the enumeration of kinds of single-file compilation output.