Difference between .equ and .word in ARM Assembly?
问题 I am curious - What is the difference between .equ and .word directives in ARM assembly, when defining constants? 回答1: .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 回答2: .word is a directive that allocates a word-sized amount of storage space (memory) in that location. It can additionally have that location initialized with a given value. .equ is more