Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It there a way to produce the whole final program's asm? #248

Open
wormtql opened this issue Oct 7, 2023 · 1 comment
Open

It there a way to produce the whole final program's asm? #248

wormtql opened this issue Oct 7, 2023 · 1 comment

Comments

@wormtql
Copy link

wormtql commented Oct 7, 2023

I call some functions in main.rs, and compile it to a binay, but the --emit asm only produces the asm of main.rs, not the external function it is calling. And the cargo-asm seems to only support emit indivudual functions. So is there a way to produce the final linked program's asm?

@pacak
Copy link

pacak commented Jun 4, 2024

You can do it using cargo-show-asm with --disasm flag. It needs to be installed with "disasm" feature.

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

No branches or pull requests

2 participants