# Free Pascal

> Open source compiler for Pascal and Object Pascal

Source: https://talira.ai/catalog/free-pascal-3qtxtk49
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [developer tools / compilers](https://talira.ai/categories/developer-tools/compilers)
- Platforms: windows, linux, macos, freebsd[^1]
- Licence: GPL-2.0-or-later[^1][^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Self-hostable: yes[^1]
- Creator: Florian Klämpfl

Free Pascal (FPC) is a mature, versatile open source compiler for Pascal and Object Pascal, written in Pascal itself. Its syntax is highly compatible with Turbo Pascal 7.0 and most versions of Delphi (classes, RTTI, exceptions, interfaces), it has a Mac Pascal mode for Think Pascal and MetroWerks code, and it adds function and operator overloading. It targets x86 (16, 32 and 64 bit), PowerPC, SPARC, ARM, AArch64, MIPS, 68k, AVR and the JVM, on Windows, Linux, macOS and iOS, the BSDs, DOS, Android, Haiku, AmigaOS and embedded platforms, with RISC-V, Xtensa, WebAssembly and an LLVM backend in the development version. The team also maintains pas2js, a Pascal-to-JavaScript transpiler. The compiler is under the GNU GPL, and its runtime library and packages under a modified LGPL that allows static linking into applications of any licence.

## Links

- Website: https://www.freepascal.org/
- GitLab: https://gitlab.com/freepascal.org/fpc/source
- Docs: https://www.freepascal.org/docs.var

## Problems it solves

- compile my old Turbo Pascal or Delphi code on a modern operating system
- a free Object Pascal compiler for Linux, macOS and Windows
- cross-compile a native program for ARM, embedded boards or retro systems
- build native desktop applications in Pascal without paying for Delphi
- compile Pascal code to JavaScript for the browser

## Features

- Turbo Pascal 7.0 and Delphi compatibility modes
- Mac Pascal mode
- function and operator overloading
- many CPU targets: x86, x86-64, ARM, AArch64, PowerPC, SPARC, MIPS, 68k, AVR, JVM
- Windows, Linux, macOS, iOS, BSD, DOS, Android and embedded targets
- self-hosting compiler written in Pascal
- pas2js Pascal-to-JavaScript transpiler

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.28 out of 1.
Signals: backing 0.20, extensibility 0.20.

- created by Florian Klämpfl

Warnings:

- GitLab activity not fetched yet

## Alternatives

- [GCC](https://talira.ai/catalog/gcc-60yx6fav.md): The GNU Compiler Collection
- [SBCL](https://talira.ai/catalog/sbcl-7qhrpvs1.md): A high performance Common Lisp compiler

## Sources

[^1]: https://www.freepascal.org/ (checked 23 Nov 2026)
[^2]: https://www.freepascal.org/faq.var (checked 23 Nov 2026)
