为什么gcc不支持裸函数? [英] Why doesn't gcc support naked functions?
本文介绍了为什么gcc不支持裸函数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用裸功能在程序运行时修补程序的某些部分.我可以在Windows的VC ++中轻松地做到这一点.我正在尝试在Linux中执行此操作,而gcc似乎不支持裸函数.使用裸函数编译代码可以给我以下信息:警告:"naked"属性指令已被忽略.在CentOS 5.5 i386下编译.
I use naked functions to patch parts of a program while it's running. I can easily do this in VC++ in Windows. I'm trying to do this in Linux and it seems gcc doesn't support naked functions. Compiling code with naked functions gives me this: warning: ‘naked’ attribute directive ignored. Compiled under CentOS 5.5 i386.
推荐答案
查看全文