How to compile c/c++ to ms-dos .com programs?

后端 未结 2 1819
后悔当初
后悔当初 2021-01-29 04:03

I use Code::Blocks with GNU GCC Compiler. My question is: is there any way to compile c/c++ code to ms-dos 16bit (.com) executable format?
I tried to set the build options

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-29 04:41

    What you are looking for is exe2bin. This was a utility that came with DOS to convert .EXE format object code into the .COM format (code and data in one 64K segment). It came with DOS and some compiliers/assemblers.

提交回复
热议问题