Skip to main content

compile_to_full_words

Function compile_to_full_words 

Source
pub fn compile_to_full_words(source: &str) -> Result<Vec<u32>, String>
Expand description

Compile a .lg source all the way to full soft-core imem words, through the chip compile path (compile_for_chip — plain Div/Mod, no magic reciprocals). Err if it doesn’t parse/compile or uses anything outside the chip’s integer subset. Targets the 32-bit datapath (the tape-out core); for a 64-bit datapath (VM parity on 64-bit-range arithmetic) use compile_to_full_words_w.