如何获得以字节为单位的函数的长度? [英] How to get the length of a function in bytes?
本文介绍了如何获得以字节为单位的函数的长度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道在运行时的C函数的长度(由我写的)。任何方法得到它?看来的sizeof不能在这里工作。
I want to know the length of C function (written by me) at runtime. Any method to get it? It seems sizeof doesn't work here.
推荐答案
有在标准C没有办法得到的内存功能占用量。
There is no way in standard C to get the amount of memory occupied by a function.
这篇关于如何获得以字节为单位的函数的长度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文