It is possible to read an object file?

前端 未结 3 695
走了就别回头了
走了就别回头了 2021-02-08 03:01

I was curious about .obj files: I pretty much don\'t know what they are (or what they contain), so I opened them with Vim text editor and what I found inside was an

3条回答
  •  执笔经年
    2021-02-08 03:44

    Sure.

    But every different platform has a different object format. On Windows, you could use a tool like dumpbin (dumpbin comes with Visual Studio). On Linux, you could use "dumpobj", or disassemble the program.

    Here's a good link for Linux:

    http://www.linuxjournal.com/article/1060

    PS: objdump also lets you disassemble the object. Like you used to be able to do with "debug" on DOS PCs...

提交回复
热议问题