Skip to main content

Module compiler

Module compiler 

Source
Expand description

Architecture-specific compiled implementations for HashX

This module provides a consistent interface across configurations and targets via the Executable struct and the Architecture trait. When the compiler is unavailable, an Executable is empty and the Architecture is defined here as a stub implementation. Otherwise, the Executable wraps a mmap buffer from the dynasmrt crate and the Architecture is implemented in a CPU-specific way.

Modulesยง

util ๐Ÿ”’
Shared utility layer for all architecture-specific compilers
x86_64 ๐Ÿ”’
Dynamically emitted HashX assembly code for x86_64 targets

Structsยง

Executable ๐Ÿ”’
Wrapper for a compiled program, empty when compiler support is disabled

Traitsยง

Architecture ๐Ÿ”’
Trait that adds architecture-specific functionality to Executable