0

i have a small program that uses 32bit object file, and i wish to run it under dos operating system. now, after searching i found DJGPP.
is there a way to use DJGPP to compile my program to 16Bit dos executable format?

thanks in advance

Community
  • 1
  • 1
bks
  • 1,886
  • 1
  • 24
  • 43

2 Answers2

2

Take a look at this related Stack Overflow question. It might help.

Community
  • 1
  • 1
Pablo Santa Cruz
  • 176,835
  • 32
  • 241
  • 292
  • Whilst this may theoretically answer the question, [it would be preferable](//meta.stackoverflow.com/q/8259) to include the essential parts of the answer here, and provide the link for reference. – Nolan Akash Jul 12 '16 at 04:53
0

If you want to take advantage of a 32-bit processor (386 and above) to run 32-bit code under 16-bit DOS (using DPMI), then DJGPP is definitely the right tool. That is, it produces 16-bit dos executable files containing 32-bit code. For object format it uses 32-bit COFF.

Fabel
  • 1,711
  • 14
  • 36