什么COFF(Windows .obj目标文件)查看器可用?

时间:2010-02-14 21:51:12

标签: windows visual-studio linker coff

我只知道2:

2 个答案:

答案 0 :(得分:4)

DbgHelp,但它更倾向于PE文件而不是目标文件。它旨在用作API而不是工具。

COFF格式本身起源于unix http://en.wikipedia.org/wiki/COFF,尽管微软已经稍微扩展了格式,而unix似乎放弃了这种格式而转而使用ELF。但是你可能会在Unix世界中找到一些有用的工具,例如来自SCO http://docsrv.sco.com:507/en/man/html.CP/dump.CP.html

的转储工具

答案 1 :(得分:0)

只需将COFF格式转换为ELF并使用一些ELF查看器:

objcopy.exe --input-target=pe-i386 --output-target=elf32-i386 somefile.o somefile.elf

例如在Python中,您可以使用这个单文件实现,它只依赖于struct模块:http://www.tinyos.net/tinyos-2.1.0/tools/platforms/msp430/pybsl/elf.py