Sparc函数编译对齐 [英] Sparc Function compilation alignment
本文介绍了Sparc函数编译对齐的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
如果您正在使用足够新的编译器,他们最近添加了一个新选项: -fprolog -pad = N
和 -fprolog-pad = M,N
这意味着在函数N之后发出M nops。
I want my program such that each function in the binary has some space left after it ends. So that later if some minor change is required only that function is changed with the extra space acting as room for accounting the minor change. -falign-function can do the job but it will not give consistent space. Is there anyway to do it? Or better way to do it?
解决方案
If you are using a sufficiently new compiler, they have recently added a new option: -fprolog-pad=N
and -fprolog-pad=M,N
which means issue M nops before the function an N nops after it.
这篇关于Sparc函数编译对齐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文