Hacker News new | ask | show | jobs
by Ar-Curunir 2096 days ago
That’s not true anyway today, because the assembly generated depends on the architecture, and there’s sufficient diversity there.

The only thing that you can predict about compiled C code is the instructions in the C abstract machine, because that’s what C targets.

1 comments

You can predict a pseudo-assembly output for a mental model of the architecture(s) you're targeting. It doesn't have to be an exact match, register allocation and all.