Skip to content

Free Pascal Cookbook

Cooking

Welcome to my Free Pascal Cookbook!

You'll find useful snippets and study notes for Object Pascal using the Free Pascal Compiler (FPC) and Lazarus IDE—perfect for saving time and making your coding journey smoother!

If you're seeking tutorials and in-depth technical discussions, don't miss Resources.

Install FPC Official Documentation

Why Free Pascal?

Productive

Build apps quickly using visual tools and straightforward event handling.

Cross-Platform

Write code once and run it on Windows, macOS, Linux, and more!

Readable

Easy-to-understand code that helps you find and fix mistakes quickly.

Native & Fast

Programs compile directly to machine code, making them run super fast.

Stable & Modern

Reliable for big projects and supports cool new programming features.

Rich Ecosystem

Lots of ready-to-use components and great for working with databases.

Official Documentation

Want to dive deeper? The official documentation is a great resource. Here are some starting points:

Free Pascal Compiler (FPC)

Lazarus IDE

Installation

You need the Free Pascal Compiler (FPC) to run the snippets locally on your machine.

Latest release: FPC 3.3.2, Lazarus IDE 3.6.

Code Repos

Curious where the magic happens? You can explore the source code for Free Pascal and Lazarus:

Acknowledgments

Note

Code snippets on this site work with FPC 3.2.2 and Lazarus 3.6 on Win 11.

Warning

This document is a work in progress.

Contents are still being revised and added.