Ask HN: How did you learn x86-64 assembly?

https://news.ycombinator.com/item?id=23930335
by spacechild1 • 6 years ago
48 20 6 years ago

I'm an experienced C/C++ programmer and I occasionally look at the generated assembly to check for optimizations, loop unrolling, vectorization, etc. I understand what's going on the surface level, but I have a hard time understand what's going on in detail, especially with high optimization levels, where the compiler would do all kinds of clever tricks. I experiment with code in godbolt.org and look up the various opcodes, but I would like to take a more structured way of learning x86-64 assembly, especially when it comes to common patterns, tips and tricks, etc.

Are there any good books or tutorials you can recommend which go beyond the very beginner level?

Related Stories

Loading related stories...

Source preview

news.ycombinator.com