Skip to main content

listing

Function listing 

Source
pub fn listing(
    program: &Program,
    id: FunctionId,
    code: &[EncodedInst],
) -> String
Expand description

A whole run of encoded instructions, one to a line.

pc, the byte offset, the raw sixteen bytes, then the text. The first three are what a readable listing has no reason to carry and a bytecode view exists for; the fourth is one, so the right-hand column of this and the body of crate::print::function are the same characters.