ARM > Introduction to ARM > Interworking
Previous topic:
Thumb
Next topic:
Thumb Example
Blog RISC OS PrivateEye PhotoFiler Geminus Toolbar IntroductionToARM 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 ARM Sinclair Ocean Disassembly Chase H.Q. Tip Archimedes Logo TargetedOptimisation Trace Hard Disc Vector Recreation Pixel Art Groening Simpsons Futurama Disenchantment BBC Micro Electron BasicOptimisation Slide 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>