Skip to content

x86 instructions to C? #3441

Answered by mattgodbolt
guest271314 asked this question in Q&A
Mar 13, 2022 · 2 comments · 5 replies
Discussion options

You must be logged in to vote

It's possible but very tricky and error prone in general. Some commercial packages like HexRays can do it, albeit not to anything very human-readable without a lot of user help. See https://stackoverflow.com/questions/14308610/how-hard-is-it-really-to-decompile-assembly-code for example.

It's not something Compiler Explorer does (nor any time likely) - we have a bug open for Ghidra support but I don't think Ghidra supports automated decompilation in the same way as HexRays.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@guest271314
Comment options

@mattgodbolt
Comment options

@guest271314
Comment options

@guest271314
Comment options

Answer selected by mattgodbolt
Comment options

You must be logged in to vote
1 reply
@mattgodbolt
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants