Function save_assembly_to_file

Source
pub fn save_assembly_to_file<C: Display>(
    arch: Architecture,
    path: PathBuf,
    body: &[u8],
    assembly_comments: HashMap<usize, C>,
) -> Result<(), CompileError>
Expand description

Saves disassembled assembly code to a file with optional comments at specific offsets.

This function takes raw machine code bytes, disassembles them using objdump, and writes the annotated assembly to a file in the specified debug directory.