News for hackers. Stuff that matters.
Re:Show HN: Assembly to C code Decompiler by kw71 on Friday May 27, 2016 @08:42PM (#11790085)
Many instructions of machine code can be written as one C statement. There are some cases of things the cpu can do that are not standardized in C, like "arithmetic shift vs. logical shift." Maybe these instructions would be inlined.
Re:Show HN: Assembly to C code Decompiler by khedoros on Friday May 27, 2016 @11:59PM (#11790527)
> Many instructions of machine code can be written as one C statement.

I'm quite aware =) Nested loops, some pointer calculations (dealing with real mode pointers), conditionals with more than one condition, and multi-step math statements seem particularly verbose, compared to their higher-level equivalents. If a piece of code gets kind of complicated, I usually hand-decompile it, and it's usually much shorter, even in fairly-naive C code.