[fpc-pascal] Compiling for DOS

Jonas Maebe jonas.maebe at elis.ugent.be
Sun Nov 13 17:47:49 CET 2005


On 12 Nov 2005, at 20:47, Felipe Monteiro de Carvalho wrote:

>> No, FPC was being created as a protected-mode compiler from the very
>> beginning.
>
> Is it very different to compile for protect-mode DOS and real-mode  
> DOS?

Yes. Real-mode Dos is generally 16 bit (although 32 bit real mode is  
possible as well, but that does not work as soon as emm386, qemm386  
etc is used, or if you have a Dos box under any Windows flavour.

FPC does not contain a 80x86 16 bit code generator (nor a 32 bit Dos  
real mode RTL).

> Interesting that FPC was based on TP 7, but TP 7 only compiled for  
> real-mode.

Only the language was based on TP7. The code of the compiler and RTL  
was written from scratch. And the main reason to start FPC was  
because TP was only a 16 bit real mode compiler.


Jonas



More information about the fpc-pascal mailing list