Various Free Pascal/Lazarus and Delphi sample projects, to compile with the Free Pascal/Lazarus Light LCL (LLCL): Light LCL (LLCL)
All the samples are distributed under the terms of the MIT license: see LICENSE.txt
To use them with the LLCL, add the corresponding path for the LLCL files into these project options before compiling them (see the README.txt file of the LLCL for more details).
Projects are delivered for both types: Delphi (Delphi 7) and Free Pascal/Lazarus.
Unless notified specifically, all the samples can be compiled using the LLCL or the standard LCL/VCL (see for each sample in README.txt).
Some of the sample projects use icons from "FatCow Farm Fresh Icons": http://www.fatcow.com/free-icons .
Compare and search for identical files (same size and same content) between 2 directories, or inside 1 directory.
CRC32 and hash computes (MD5/SHA-1) for a file chosen by the user.
A very simple integer calculator.
Periodic ping for a given URL (Systray using).
Using GDI and OpenGL APIs.
HTTP Get/Post using Indy. This sample requires a modified version of the LLCL (a simple program to modify it is provided with this sample).
Comparison of executable sizes between the standard (LCL/VCL) and the LLCL versions for the different sample projects
Executables have been build with the same conditions in each cases: architecture (32 bits), debugging (no debugging), optimization level, icon files, FPC version ...
Project | LCL (Lazarus 1.4.4) | LLCL Free Pascal | VCL (Delphi7) | LLCL Delphi |
---|---|---|---|---|
Demo LLCLTest(1) | 1721 Kb | 142 Kb | 464 Kb | 89 Kb |
CompFiles | 1887 Kb | 164 Kb | 463 Kb | 100 Kb |
FileCRC | 1695 Kb | 142 Kb | 401 Kb | 89 Kb |
MiniCalc | 1652 Kb | 120 Kb | 379 Kb | 75 Kb |
PePing | 1699 Kb | 142 Kb | (3) | 92 Kb |
Visual(4) | 1707 Kb | 213 Kb | 404 Kb | 106 Kb |
GetWebPage(2) | 2236 Kb | 814 Kb | 828 Kb | 589 Kb |
Project | LCL (Lazarus 1.6.0) | LLCL Free Pascal |
---|---|---|
Demo LLCLTest(1) | 1587 Kb | 129 Kb |
CompFiles | 1803 Kb | 150 Kb |
FileCRC | 1564 Kb | 130 Kb |
MiniCalc | 1527 Kb | 109 Kb |
PePing | 1572 Kb | 130 Kb |
Visual(4) | 1578 Kb | 208 Kb |
GetWebPage(2) | 2076 Kb | 777 Kb |
Notes:
- demonstration project included in the LLCL: LLCL
- due to the size of the Indy library itself, the ratio of the different executable sizes is bigger than usual
- because of the TTrayIcon component, this sample can't be compiled with the standard VCL with the old versions of Delphi (i.e. before Delphi 2006)
- PNG images support included into the LLCL Delphi version, while not into the standard VCL one.