Linux

Steinar H. Gunderson: Decompilation patterns part 2: do-while

Continuing our journey on decompilation patterns, here's another common one: Let's say m2c outputs code like this: loop_151: … if (var_s0 > var_s1) goto loop_151; then the natural change is: do { … } while (var_s0 > var_s1); Fewer gotos are nearly always good, and this is a much more likely pattern than the original one. m2c often manages to convert gotos to do/while, but not always when they are e.g. nested in some other loop; so often, you may…

Quelle: Originalartikel öffnen

AI Assistant
Context loaded: Steinar H. Gunderson: Decompilation patterns part 2: do-whil