3 ms·
About 6 months ago my job required that I finally get my hands dirty writing x86 assembly. It's my first real foray into assembly coding. There are a few aspec
by DoofusOfDeath 6y ago
About 6 months ago my job required that I finally get my hands dirty writing x86 assembly. It's my first real foray into assembly coding.
There are a few aspects of it that I'm really enjoying:
- I can now actually understand the disassembled code that I see during debugging. This includes recognizing some of the assembly patterns that appear because of ABI requirements and/or common programming idioms.
- I'm becoming comfortable with a programming idiom that I've never really used in the past: registers, flags, various kinds of memory addressing.
- It helps my understanding of compilers' lower levels / backends, and the related problems: register allocation, instruction selection, etc.
- It provides a clear path for my first attempt at writing JIT code (using Xbyak[0]).
So as Richard Feynman might have said, it's great fun!
[0] https://github.com/herumi/xbyak https://github.com/herumi/xbyak