Feb. 11, 2009
7:11 p.m.
At least IA32 and AMD64 have specific addressing modes where it's possibile to use a multiplying factor of 1, 2, 4 or 8 for the index register.
I hope that compilers were smart enough to already used them.
For x86, certainly (at least GCC does). For Thumb, certainly not: the compiler cannot assume that the code is in ThumbEE mode. Regards, Martin