CARM User's Guide

Discontinued

Instruction Sets

The CARM Compiler generates programs using the ARM and THUMB instruction sets for the ARM7 architecture. The instruction set is chosen by a compiler directive. By default, the CARM Compiler generates programs using THUMB instructions.

  • ARM instructions are 32-bit instructions that occupy four bytes. You may specify that the compiler generate ARM code (using the ARM directive) for all functions or by using the __arm function attribute on a function-by-function basis.
  • THUMB instructions are a compressed version of the ARM instructions that occupy only 16-bits (two bytes). You may specify that the compiler generate THUMB code (using the THUMB directive) for all functions or by using the __thumb function attribute on a function-by-function basis.

Since it supports both instruction sets, the Keil CARM Compiler is said to support ARM7TDMI and ARM9TDMI.