[英]Can a compiler optimize out a function preamble in assembly?
I am attempting to build a decompiler for x86 executables and was wondering if I can safely assume that function preambles/prologues will remain intact. 我正在尝试为x86可执行文件构建反编译器,并且想知道我是否可以安全地假设函数序言/序言将保持不变。 Is it possible compilers could optimize them out of the assembly? 编译器是否有可能在程序集中优化它们?
是的,可以优化诸如叶子函数(请参阅此处 )之类的东西,以及不使用任何局部变量的任何函数。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.