Skip to content

feat(objtool): add masm2masp command#1083

Draft
mooori wants to merge 1 commit intonextfrom
mooori/objtool-masm2masp
Draft

feat(objtool): add masm2masp command#1083
mooori wants to merge 1 commit intonextfrom
mooori/objtool-masm2masp

Conversation

@mooori
Copy link
Copy Markdown
Contributor

@mooori mooori commented Apr 20, 2026

Enables generating masp from masm.

With this we can compare masp built from handwritten masm to masp generated by the compiler from Rust code.

@mooori mooori force-pushed the mooori/objtool-masm2masp branch from c814e07 to b398eb7 Compare April 21, 2026 09:43
@mooori
Copy link
Copy Markdown
Contributor Author

mooori commented Apr 21, 2026

In the meantime I've learned that cargo miden / midenc will support masm -> masp. So objtool masm2masp is at most an ad-hoc tool to do some benchmarking of compilation artifact sizes. Hence there are some unresolved TODOs left in the diff.

@bitwalker could you take a look if this is correctly assembling masp from masm? That's handled in fn run in masm2masp.rs. Then we could report some numbers regarding the size difference of compiled vs handwritten programs.

I've tested objtool masm2masp on the handwritten basic wallet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant