Virtual Pascal is the tool of choice for 32-bit cross-platform development using the Pascal language.
It is compatibile with Delphi and Borland Pascal and it includes the Run-Time Library (RTL), a powerful integrated debugger, an optimizing compiler and comprehensive online documentation.
Fast cross-platform compiler
|
Built-in cross-platform linker
|
Integrated Development Environment
|
Utility programs
|
Libraries and examples
|
A VP-specific compiler directive {&Use32+} can be used. In the enabled state (which should be used when porting Borland Pascal code), the Use32 unit is implicitly included in the Uses statement of all unit after the System unit, but before any user-defined units are used.
The Use32 unit redefines the default integer types (integer and word, which in the System unit are defined as BP- and Delphi 1-compatible 16-bit datatypes) to be 32-bit instead.
For projects that should be compatible with Borland Pascal, {$Use32+} should remain enabled, maybe with a few exceptions in units that rely heavily on 16 bit data types. In these units, a {$Use32-} directive can be inserted at the beginning of the unit, or the new Use16 unit can be included in the Uses statement. Use16 simply reverts the type definitions introduced by Use32; this effectively cancels the effect of the &Use32 directive for this unit.
Projects that should be compatible with Delphi 2 or later should not use Use32 but should instead include the SysUtils unit, which redefines Integer to be 32 bits, but leaves Word as 16-bit - like in 32-bit Delphi.
Support for this directive increases the cross-platform and cross-compiler ability of Virtual Pascal and once and for all solves the big problems introduced when Borland decided to change the meaning of the words "Integer" and "Word".