Hacker News new | ask | show | jobs
by StilesCrisis 10 days ago
That's not at all how decomp works. The context window truly does not carry over useful data from one function to another. 99% of it is "this function is logically right but the registers are coming out different" or "the stack is pushed in a different order" or some other trivial thing that needs heavy experimentation to solve. None of that will help on the next function, even though the goals are the same; the specifics are all that matter.
1 comments

In my experience (granted its mostly been with vs98 games) only 20% or so of functions have stack slot issues
I was glossing over all the various types of failure modes. It varies so much by individual compiler. "Was this really an inline function" was a huge bugbear as well for me, since it could permute register alloc. And it's not always obvious what the helper should cover--just a better? Or a whole block?