wargio / r2dec-js

radare2 plugin - converts asm to pseudo-C code.
520 stars 51 forks source link

Optimizations #99

Open wargio opened 6 years ago

wargio commented 6 years ago

https://graphics.stanford.edu/~seander/bithacks.html

wargio commented 6 years ago

Main task: add all the optimizations into base.js

Essentially in the link above there are a lot of optimizations. we need to sort them and understand which can be globally applied and add them into base.js

If there are some arch dependent, like x86 only, then maybe we can still improve the decompilation of the affected architecture without using the Base functions.