如何读取.obj文件? [英] How to read a .obj file?

查看:98
本文介绍了如何读取.obj文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio中,编译c ++文件后将生成目标文件(.obj)。
如何阅读和理解它?
以及在Visual Studio 2015中对编译器进行优化后如何查看代码。
如果已解决此问题,请重定向。

In visual studio a object file (.obj) is generating after compiling a c++ file. How to read and understand it? Also how to see the code after compiler optimization in Visual studio 2015. Please redirect if this is already answered.

推荐答案

使用以下工具中的 DUMPBIN 工具Visual Studio命令提示符。具体来说, / DISASM 选项显示反汇编。请注意,如果您启用了链接时间优化,那么至少在理论上,将 .obj 文件链接形成最终二进制文件( .exe .dll )。您也可以使用 DUMPBIN 进行反汇编。

Use the DUMPBIN tool from Visual Studio command prompt. Specifically, the /DISASM option shows you the disassembly. Do note the if you have link-time optimization enabled, then at least theoretically the final code may change after the .obj files are linked to form the final binary (.exe or .dll). You can disassemble those with DUMPBIN as well.

这篇关于如何读取.obj文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆