在ARM汇编.EQU和.word之间的区别? [英] Difference between .equ and .word in ARM Assembly?

查看:1430
本文介绍了在ARM汇编.EQU和.word之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很好奇 - 是什么区别 .EQU .word ARM汇编指令,当确定常量?

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

推荐答案

.word就像C.无符号整型.EQU像的#define

.word is like unsigned int in C. .equ is like #define

#define bob 10
.equ bob,10

unsigned int ted;
ted: 
.word 0

unsigned int alice=5;
alice:
.word 5

这篇关于在ARM汇编.EQU和.word之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆