本文介绍了使用Open Watcom的COM可执行文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为运行PC-DOS的旧i286机器制作一个小型实用程序,并将目标格式设置为普通的COM可执行文件.

I'm trying to make a small utility for an old i286 machine running PC-DOS and the target format a plain COM executable.

编译器的选择是Open Watcom,在文档中说它可以链接DOS .COM文件,但是文档要么模棱两可,要么如示例所示不起作用,所以我最终得到了.EXE文件(带有MZ标头)或多个链接器/编译器错误.

The compiler choice has been Open Watcom and, on the documentation it says it can link DOS .COM files but documentation is either ambiguous or doesn't work as the examples show, so I end up with either a .EXE file (with MZ header) or multiple linker/compiler errors.

那么,如何使用Open Watcom编译器使.COM可执行文件?

So, How can I make a .COM executable with Open Watcom compiler?

推荐答案

system com选项可能无效,因为OpenWatcom手册中未提及.

The system com option is probably invalid since it is not mentioned in the OpenWatcom manual.

根据文档,您应该能够使用wlinkformat dos com选项获得COM可执行文件(至少这是我成功使用的功能).

According to the documentation, you should be able to get COM executable using format dos com option for wlink (at least this is what I am successfully using).

这篇关于使用Open Watcom的COM可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-16 13:28