ARM > Introduction to ARM > Interworking
Previous topic:
Thumb
Next topic:
Thumb Example
ARM RISC OS PrivateEye PhotoFiler IntroductionToARM Geminus Toolbar Site Containers GitHub Hardware iOS Optimisation Project Aha Retro Links Dump Spectrum Risc PC The Great Escape LEGO Wedding Acorn Doodle Blender 3D Isometric 2D Article Sinclair Ocean TargetedOptimisation Disassembly Chase H.Q. Tip BasicOptimisation Slide Trace Hard Disc Vector Pixel Art Groening Simpsons Futurama Disenchantment BBC Micro Electron Archimedes 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>