9.1 Standard units

The following units are standard and are meant to be ported to all platforms supported by Free Pascal. A brief description of each unit is also given.

A unit to provide mapping of character sets.
Using this unit replaces the Free Pascal memory manager with the memory manager of the C library.
This unit is similar to the unit of the same name of Turbo Pascal. It implements writing to the console in color, moving the text cursor around and reading from the keyboard.
This unit provides basic routines for accessing the operating system. This includes file searching, environment variables access, getting the operating system version, getting and setting the system time. It is to note that some of these routines are duplicated in functionality in the sysutils unit.
Provides cross-platform access to loading dynamical libraries.
This unit gives you the gnu getopts command line arguments handling mechanism. It also supports long options.
This unit is deprecated. This unit provides basic graphics handling, with routines to draw lines on the screen, display text etc. It provides the same functions as the Turbo Pascal unit.
a unit which debugs the heap usage. When the program exits, it outputs a summary of the used memory, and dumps a summary of unreleased memory blocks (if any). You should not include this unit directly, instead use the -gh command-line switch.
provides basic keyboard handling routines in a platform independent way, and supports writing custom drivers.
This unit implements several functions available only in MACPAS mode. This unit should not be included; it’s automatically included when the MACPAS mode is used.
This unit contains common mathematical routines (trigonometric functions, logarithms, etc.) as well as more complex ones (summations of arrays, normalization functions, etc.).
A unit providing matrix manipulation routines.
This unit provides support for mmx extensions in your code.
Provides basic mouse handling routines in a platform independent way, and supports writing custom drivers.
This unit provides the base object for standard Turbo Pascal objects. It also implements File and Memory stream objects, as well as sorted and non-sorted collections, and string streams.
Is used for Delphi compatibility. You should never load this unit explicitly; it is automatically loaded if you request Delphi mode.
This unit provides all you need for rudimentary access to the printer using standard I/O routines.
This gives the programmer access to sockets and TCP/IP programming.
This unit provides basic string handling routines for the pchar type, comparable to similar routines in standard C libraries.
This unit is available for all supported platforms. It includes among others, basic file I/O routines, memory management routines, all compiler helper routines, and directory services routines.
Offers a lot of extended string handling routines.
Offers a lot of extended date/time handling routines for almost any date and time math.
Is an alternative implementation of the sysutils unit of Delphi. It includes file I/O access routines which takes care of file locking, date and string handling routines, file search, date and string conversion routines.
Provides functions to access runtime Type Information, just like Delphi.
Provides basic variant handling.
Provides basic screen handling in a platform independent way, and supports writing custom drivers.