ARM > Introduction to ARM > Interworking
Previous topic:
Thumb
Next topic:
Thumb Example
ARM Blog RISC OS PrivateEye PhotoFiler Geminus IntroductionToARM Toolbar Site Project Containers GitHub Hardware iOS Optimisation Aha Retro Links Dump Spectrum Risc PC The Great Escape Reverse Engineering LEGO Wedding Acorn Doodle Blender 3D Isometric 2D Article Sinclair Ocean Disassembly Chase H.Q. Tip TargetedOptimisation Archimedes Logo BasicOptimisation Slide Trace Hard Disc Vector Recreation Pixel Art Groening Simpsons Futurama Disenchantment BBC Micro Electron MotionMasks Script Python Iyonix QuickFiler Game EfficientC
You can mix and match ARM and Thumb code within the same binary. This is called interworking and it lets you exploit the strengths of each instruction set.
For example:
The ‘T’ bit in the CPSR register signals Thumb mode.
BX Rm
.
ARMv5T and later architectures add:
BLX <Rm|label>