2 ms·
> thus if you write [EBP+ECX], it actually gets encoded as [EBP+ECX+0]. And that's not as important as you make it appear. If you write [EBP + 24] (where the
by acqq 7y ago
> thus if you write [EBP+ECX], it actually gets encoded as [EBP+ECX+0].
And that's not as important as you make it appear.
If you write [EBP + 24] (where the index register is simply not used), do you think that's a "slow" LEA?
The [EBP + 24] form is what my (and I guess most of other's) compiler produced most of the time. Open any program with disassembler and try to count how often index register is ever used with EBP, and how often no index register is used. Former happens practically never, the later (no index) is very common.