c++ - 将 COFF lib 文件转换为 OMF 格式

标签 c++ c++builder omf

有什么方法可以将 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/

相关文章:

c++ - 哪种是产生线程的最佳方法?

c++ - 为什么在 C++ 内存管理中,术语 "automatic"和 "dynamic"优于术语 "stack"和 "heap"?

c++ - 在 Arduino 中选择一个随机的 pwm 引脚

android - FMX系统消息传递以发送指针(?)

fish shell 显示管道错误 - 新错误

linux - Windows 工具生成的 OMF 文件可以链接到 Linux 中的 GCC 程序集吗?

c++ - C++中的24位到32位转换

c++ - Borland 警告 8092

c++ - 异步输入输出/获取前缀后的输入