blob: 6a7e852f8c1e4d20447938e82253a80d1c20b54f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
\section{Approach}
\label{sec:approach}
It is possible to mix ARM and Thumb instructions:
\enquote{[t]he ARM and Thumb instruction sets are designed to \emph{interwork} freely}~\citep{armv7m}.
We could therefore decide to generate code for some sections using ARM instructions, and for other using Thumb instructions.
This could potentially give better end results,
if the code generator would recognise which instruction set is best in what case.
However, some architectures, like ARMv7-M, only support Thumb instructions.
I choose to look at Thumb instructions only,
so that the widest range of architectures possible can be supported.
|