pub(crate) struct Executable {
buffer: ExecutableBuffer,
}
Expand description
Wrapper for a compiled program, empty when compiler support is disabled
Fields§
§buffer: ExecutableBuffer
Available on crate feature
compiler
and (x86-64 or AArch64) only.Mapped memory, read-only and executable
On platforms with compiler support, this item is present. If the compiler is unavailable, Executable will be empty.
Trait Implementations§
Source§impl Architecture for Executable
Available on crate feature compiler
and x86-64 only.
impl Architecture for Executable
Available on crate feature
compiler
and x86-64 only.Source§fn compile(program: &[Instruction; 512]) -> Result<Self, CompilerError>
fn compile(program: &[Instruction; 512]) -> Result<Self, CompilerError>
Compile an array of instructions into an Executable
Source§fn invoke(&self, regs: &mut RegisterFile)
fn invoke(&self, regs: &mut RegisterFile)
Run the compiled code, with a RegisterFile for input and output
Source§impl Debug for Executable
Available on crate feature compiler
and (x86-64 or AArch64) only.
impl Debug for Executable
Available on crate feature
compiler
and (x86-64 or AArch64) only.Auto Trait Implementations§
impl Freeze for Executable
impl RefUnwindSafe for Executable
impl Send for Executable
impl Sync for Executable
impl Unpin for Executable
impl UnwindSafe for Executable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more