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

Output lanagauge #742

Open
Cairn23 opened this issue Mar 10, 2019 · 1 comment
Open

Output lanagauge #742

Cairn23 opened this issue Mar 10, 2019 · 1 comment
Labels
code-generation This issue is about the Reko's output code enhancement This is a feature request

Comments

@Cairn23
Copy link

Cairn23 commented Mar 10, 2019

The current decompiled output is 'C', I am proposing to extend this to C++ and Objective-C. This may be an auto function of the output looking at the type of binary, or allows the user select the output type.

@uxmal
Copy link
Owner

uxmal commented Mar 10, 2019

Actually Reko produces C++ today to model the x86 segmented pointers. E.g. the x86 instruction:

mov [es:bx],dx

will be translated to:

es_1->*bx_2 = dx_3;

Reko could certainly make an attempt to guess what the output language should be. A user-selectable option to override this guess would naturally make sense. And why not support Rust, Swift etc? Then its just a small matter of programming to generate the correct syntax for the chosen output language.

@uxmal uxmal added enhancement This is a feature request code-generation This issue is about the Reko's output code labels Mar 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code-generation This issue is about the Reko's output code enhancement This is a feature request
Projects
None yet
Development

No branches or pull requests

2 participants