yegord / snowman

Snowman decompiler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change Output Language of nocode or snowman

humanitiesclinic opened this issue · comments

Is it possible to change the output language of nocode? Is there an option to change it to pure C or Objective-C, for example?

Nope. It generates something C-like only.

Oh but when --help is invoked, it says that "It parses given files, decompiles them, and prints the requested information (by default, C++ code) to the specified files.". It says "by default, C++ code", which seems to imply the output code can be changed, no? Also it says "Nocode is a...C/C++ decompiler.", so I can't change the output code to pure C?

It's a documentation bug. The decompiler generates some C/C++-like code. It will not compile.

I see, is there a guide that will teach how to understand the C/C++-like code, since there are some elements that are different?

Nope.

My suggestion is to read assembler and C++-like code in parallel (you can click on an instruction/select multiple instructions, and the decompiler will highlight you the code that was generated from them, and vice versa). If you know somewhat C++ and assembler, it should give you an idea of what is going on, why what code is generated.