package
0.0.0-20230226003218-1dd1f65bfa42
Repository: https://github.com/c4-project/c4t.git
Documentation: pkg.go.dev
# 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.
# 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.
# 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.