Difference between .equ and .word in ARM Assembly?

arm, assembly, cortex-m, directive

Solution

`.equ` is like `#define` in C:

#define bob 10
.equ bob, 10

`.word` is like `unsigned int` in C:

unsigned int ted;
ted: 
.word 0

Or initialized with a value:

unsigned int alice = 42;
alice:
.word 42

Problem

I am curious - What is the difference between `.equ` and `.word` directives in ARM assembly, when defining constants?

Original source

Related problems