John Lam 1997 — 2026

The mysterious cmp ecx, [ecx] instruction

If you were to look at the code generated by the CLR’s JIT, you will sometimes see the following instruction sequence: