All apps/Free Pascal

Free Pascal

fpc

A professional Pascal compiler

Runs as fpc, ppcx64, ppcarm|macOS, Linux, Windows|www.freepascal.org

Command form

ai-draft · 2 tasks · 11 fields

Compile a Pascal source file with fpc. Options are written attached to their value (-O2, -Mdelphi, -FEdir). Target selection, linking and assembler options are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui fpc
Compile Pascal programExample values, fixed in this page — nothing here reaches a terminal
Basic
Source file*
file
Output file name
string
Language mode
5 choicesenum
TasksEach one presets the form for one job
Compile
sourcemodeoutput
Debug build
sourcemodedebug
ParametersOnly these flags are editable in the form
Source file
path · positional 0
Output file name
string
-o
Language mode
enum
-Mfpcobjfpcdelphitpmacpas
Optimization level
enum
-O123
Debug info (GDB)
boolean
-g
Define symbols
string · repeatable
-d
Unit search paths
path · repeatable
-Fu
Include search paths
path · repeatable
-Fi
Executable output directory
path
-FE
Unit output directory
path
-FU
Ignore fpc.cfg
boolean
-n
SourcesEvery flag above is checked against these
manual
fpc [options] [sourcefile] -FE xxx set the executable/unit output path to xxx -Fi xxx adds xxx to the path where the compiler searches for its include files. -Fu xxx Adds xxx to the unit path. -FU xxx Tells the compiler to write units in directory xxx instead of the current directory. -g Generate debugging information for debugging with GDB. -d xxx Def…
manualfpc(1) man page

man.archlinux.org

Before it fills your prompt, Otty checks the installed fpc against its version. A form that does not match your version is not offered.