[ < ] | [ > ] |  | [ << ] | [ Up ] | [ >> ] |  |  |  |  | [Top] | [Contents] | [Index] | [ ? ]

## 6.2 BP Incompatibilities

This sections lists the remaining incompatibilities of GPC to BP, and the problems you might encounter when porting BP programs from 16-bit Dos to other platforms, and gives solutions for them.

By incompatibilites we mean problems that can arise when trying to compile a valid BP program with GPC. Of course, there are many features in GPC that BP doesn't know, but we call them extensions unless they can break valid BP programs, so they are not mentioned here. The subsequent sections of the ``Borland Pascal'` chapter mention a number of useful extensions that you might want to know about but which will not break your BP code.

> 6.2.1 String type |
> 6.2.2 Qualified identifiers |
> 6.2.3 Assembler |
> 6.2.4 Move; FillChar |
> 6.2.5 Real type |
> 6.2.6 Graph unit |
> 6.2.7 OOP units |
> 6.2.8 Keep; GetIntVec; SetIntVec |
> 6.2.9 TFDDs |
> 6.2.10 Mem; Port; Ptr; Seg; Ofs; PrefixSeg; etc. |
> 6.2.11 Endianness assumptions |

Some of the differences can be "overcome" by command-line switches. As a summary:

    --borland-pascal -w --uses=System -D__BP_TYPE_SIZES__ --pack-struct
    -D__BP_RANDOM__ -D__BP_UNPORTABLE_ROUTINES__ -D__BP_PARAMSTR_0__

But please read the following notes, and don't use these switches indiscriminately when not necessary. There are reasons why they are not GPC's defaults.

> 6.2.12 - -borland-pascal - disable GPC extensions |
> 6.2.13 -w - disable all warnings |
> 6.2.14 - -uses=System - Swap; HeapError; etc. |
> 6.2.15 -D__BP_TYPE_SIZES__ - small integer types etc. |
> 6.2.16 - -pack-struct - disable structure alignment |
> 6.2.17 -D__BP_RANDOM__ - BP compatible pseudo random number generator |
> 6.2.18 -D__BP_UNPORTABLE_ROUTINES__ - Intr; DosVersion; etc. |
> 6.2.19 -D__BP_PARAMSTR_0__ - BP compatible ParamStr (0) behaviour |

[ < ] | [ > ] |  | [ << ] | [ Up ] | [ >> ] |  |  |  |  | [Top] | [Contents] | [Index] | [ ? ]

This document was generated by Frank Heckenbach on May, 10 2002 using texi2html