Free Pascal App Tutorial 2 - Shrinking The Application File Size - Lazarus

Опубликовано: 20 Май 2012
на канале: SchoolFreeware
20,867
101

http://www.schoolfreeware.com

As seen in Tutorial 1, the file size of the App was about 12 - 15 MB. Using modified compiler options, the same code will make the same App with a file size of 1.5 MB.

To change the compiler options:

Check The Box:
Project - Project Options - Compiler Options - Code Generation - Unit Style - Smart Linkable (-CX)


Within Project - Project Options - Compiler Options - Linking - Debugging -
Uncheck All Boxes Except - Strip Symbols From Executable (-Xs)

Check The Box:

Project - Project Options - Compiler Options - Linking - Link Style - Link Smart (-XX)