气:太多的内存参考 [英] gas: too many memory reference
本文介绍了气:太多的内存参考的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在编译以下指令时:
movl 4(%ebp), 8(%ebp)
我得到:太多的内存引用.
怎么了?
推荐答案
括号前的数字是字节偏移量(导致出现内存引用),并且不能使用movl
包含两个.您需要先将该值临时移到寄存器中.
The number before the parenthesis is a byte offset (which causes a memory reference to occur), and you cannot have two of them with movl
. You need to move the value temporarily to a register first.
movl 4(%ebp), %ecx
movl %ecx, 8(%ebp)
这篇关于气:太多的内存参考的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文