有什么方法可以将 COFF 库(lib 文件)转换为 OMF 库以便与 C++Builder6 一起使用?这个 coff 不仅仅是导入库,它包含一些代码。 当我尝试使用 borland 的 coff2omf.exe 转换它时,我从 15KB 的文件中得到了 1KB 的文件。
最佳答案
您可以使用 http://agner.org/optimize 提供的对象文件转换器,而不是 DigitalMars 转换器。
This utility can be used for converting object files between COFF/PE, OMF, ELF and Mach-O formats for all 32-bit and 64-bit x86 platforms. Can modify symbol names in object files. Can build, modify and convert function libraries across platforms. Can dump object files and executable files. Also includes a very good disassembler supporting the SSE4, AVX, AVX2, FMA and XOP instruction sets. Source code included (GPL).
这是一个很棒的低级优化网站,associated manual pdf file 中有很多有用的信息。 ,关于跨多个平台的库格式。
关于c++ - 将 COFF lib 文件转换为 OMF 格式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3114339/