Hacker News new | ask | show | jobs
by saagarjha 812 days ago
Right but you do see how this means that you need to lift code that has semantics that cannot be modeled in C?
1 comments

Sure, in those cases we emit calls to C functions. The only thing we need to know is what registers are taken as input, what registers are output and what registers are preserved.

In QEMU parlance, these are helper functions, and they have actual implementations. But for decompilation purposes, you don't need to implement them. You just need to know how they interact with the registers.