Difference between revisions of "Mode TP"

From Lazarus wiki
Jump to navigationJump to search
(Internal links, full name instead of abbreviation)
(how to enable)
Line 1: Line 1:
 
{{Mode TP}}
 
{{Mode TP}}
  
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.
+
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]]
 
[[Category:Modes]]

Revision as of 00:54, 12 September 2017

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.