MH Tay wrote:
> Got it, some Feb2004 old post says is 20-40% slower.
I am not familiar with the LPC2xxx chip, but generally for best
performance you should match the instruction mode to the data bus width.
When accessing a 16 bit address bus, Thumb mode is typically faster that
ARM mode because ARM mode is forced to make two bus cycles for each
instruction and operand. So if your system has a 16bit bus for it's
program memory you are better off using Thumb mode for both performance
and code density. On a 32bit bus, the only advantage is code density.
I would imagine also that for C/C++ code, using short integers where
possible would help performance where a 16 bit bus is used.