Skip to main content

encode_soft_core_scalar

Function encode_soft_core_scalar 

Source
pub fn encode_soft_core_scalar(
    program: &CompiledProgram,
) -> Result<Vec<u32>, String>
Expand description

Assemble a whole compiled program into soft_core_scalar imem words. Function-free only (a program with user functions returns Err; their calling-convention translation is a separate pass). At most 256 words (the imem depth). Registers are first mapped onto the core’s sixteen by liveness (allocate_scalar_registers).