Linux中与结构体大小相关的命令是什么
你好,不久前我在Linux中遇到一个命令,它打印一个与源代码文件名相同但扩展名不同的文件,源代码中定义的结构体大小的详细用法...请让我知道任何这样的命令
谢谢
Hello sometime back I came across a command in Linux which prints in a file with the same name as that of the sourcecode filename but different extension,the detailed usage of sizes of the structures defined in the source code ...please let me know about any such commands
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我最好的猜测是您正在谈论 nm ,它列出了目标文件中的符号。一个简单的例子:
文件 test.c
构建一个目标文件:
现在列出带有大小信息的符号:
这会在我的 macbook 上打印类似这样的内容:
检查 nm 手册页以获取更多信息(http://linux.about.com/library/cmd /blcmdl1_nm.htm)
My best guess is you are talking about nm which lists symbols from object files. A quick example:
file test.c
Build an object file :
Now list symbols with size information:
This prints something like this on my macbook:
Check the nm manpage for further information (http://linux.about.com/library/cmd/blcmdl1_nm.htm)