[fpc-pascal] Compiling for DOS

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Tue Nov 8 23:16:47 CET 2005


I am trying to compile a very simple app (hello world kind) for DOS or
even for the Windows 98 rescue disk.

My first attempts ended up with a "This program cannot be run in DOS mode".

On the FP IDE I see many targets, but I don´t know witch one to
compile against. I see a few possible targets:

    * GO32 V2 DOS extender
    * Win32 for i386
    * WDOSX DOS extender
    * Watcom compatible DOS extenders

Witch one should I compile against?? Win32 doesn´t work and GO32
claims it can´t find system unit.

Should I recompile FPC for GO32 in order to use it? What is the
difference between it and WDOX or Watcom??

One might wonder what the reason for compiling to DOS is? I happen to
have an 486 running ibm-dos in my house and I´d like to use my own
program to test the ISA Card I recently created, instead of the DEBUG

Felipe Monteiro de Carvalho

More information about the fpc-pascal mailing list