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

convert gotos into "normal" code #1

Open
jonathanschilling opened this issue Jul 29, 2020 · 1 comment
Open

convert gotos into "normal" code #1

jonathanschilling opened this issue Jul 29, 2020 · 1 comment

Comments

@jonathanschilling
Copy link
Owner

jonathanschilling commented Jul 29, 2020

GOTO statements should be easy to translate into "normal" code with if/else and do/while.
Cite Dijkstra why one should do this: A case against the GO TO statement.
Here is an article on this: http://www.cs.unibo.it/~martini/PP/bohm-jac.pdf

@jonathanschilling
Copy link
Owner Author

Essentially, decompiling machine code with jumps into, e.g., C with loops and if/else-constructs is equivalent to translating GOTOs into loops and conditions. Therefore, this issue could potentially benefit from looking into decompiler algorithms. Possible options include FernFlower and HexRay's Decompiler.

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

1 participant