Write two helpers:
fn emit_const(v: i64) void { emit_str(" i64.const "); emit_num(v); emit_byte('\n'); } fn emit_op(o: []const u8) void { emit_str(" "); emit_str(o); emit_byte('\n'); }