Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
void empty() { }
将被编译为
push ebp mov ebp, esp ret
如何声明函数以使其没有“装饰”代码?很简单ret。如果那不可能,是否可以在.C文件中定义完整的汇编函数?可以在.asm文件中定义汇编函数。
ret
.C
.asm
__declspec(naked)用修饰符声明函数。
__declspec(naked)