Using the GNU Assembler Manual, v2.19.51, I was not able to find a definitive difference between these types of equates:
Does anyone know the difference and proper usage?
.equ
and .set
are documented to be the same. I was not able to find any mention of .reg
, where did you see that? There is however a .req
which defines register aliases, as opposed to the other two which define symbols.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.