Hacker News new | ask | show | jobs
by tylerhou 2128 days ago
I should maybe rephrase [1] to: if you're deciding between two different ways of writing the same function for performance reasons, you should use the optimized assembly output to decide (or the same compiler flags as what you use in production). There can be big differences between the unoptimized and optimized code: https://godbolt.org/z/fszhjj.

Unoptimized assembly IS useful if you just want to learn or understand assembly itself.