Difference between revisions of "Mode TP"

From Free Pascal wiki
Jump to navigationJump to search
(Categorization)
(Deleted category which doubling category in temlpate)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{Mode TP}}
 
{{Mode TP}}
  
This mode is provided for highest level of compatibility with TP/BP compilers in order to simplify porting of existing code to FPC. It turns on some features which are not considered as recommended to use in general (e.g. because of their ambiguity or potential side-effects), slightly modifies syntax rules where necessary, changes the default assembler mode to $ASMMODE INTEL, etc.
+
This mode is provided for highest level of compatibility with [[Turbo Pascal]]/[[Borland Pascal]] compilers in order to simplify porting of existing code to FPC. It turns on some features which are not considered as recommended to use in general (e.g. because of their ambiguity or potential side-effects), slightly modifies syntax rules where necessary, changes the default assembler mode to $ASMMODE INTEL, etc. You enable it with mode switch '''${mode TP}''' in source code or with the compiler command line option '''-Mtp'''.
  
 
See [[Porting low-level DOS code for TP/BP to GO32v2 with FPC|standalone page]] for more information about porting low-level DOS code written with TP/BP to GO32v2 target of FPC.
 
See [[Porting low-level DOS code for TP/BP to GO32v2 with FPC|standalone page]] for more information about porting low-level DOS code written with TP/BP to GO32v2 target of FPC.
  
[[Category:Modes]]
+
== see also ==
 +
* [https://www.freepascal.org/docs-html/user/usersu84.html sub-§ “Turbo Pascal compatibility mode” in the ''Free Pascal user’s guide'']

Latest revision as of 20:14, 22 October 2019

Deutsch (de) English (en) español (es) français (fr) Bahasa Indonesia (id) русский (ru)

This mode is provided for highest level of compatibility with Turbo Pascal/Borland Pascal compilers in order to simplify porting of existing code to FPC. It turns on some features which are not considered as recommended to use in general (e.g. because of their ambiguity or potential side-effects), slightly modifies syntax rules where necessary, changes the default assembler mode to $ASMMODE INTEL, etc. You enable it with mode switch ${mode TP} in source code or with the compiler command line option -Mtp.

See standalone page for more information about porting low-level DOS code written with TP/BP to GO32v2 target of FPC.

see also