I am interested in knowing the code when creating a new build system, to compile with Free Pascal using linux, or in simple words how to configure Sublime Text to compile .pas
files in linux.
I am interested in knowing the code when creating a new build system, to compile with Free Pascal using linux, or in simple words how to configure Sublime Text to compile .pas
files in linux.
The command to compile pascal from the terminal using the ide freepascal is (invoke the compiler):
$ fpc -Co -Cr -Mtp -gl hola.pas
It is necessary to analyze this command word by word:
fpc
: Is the name of the compiler Free Pascal .
hola.pas
: Is the name of the file that contains the source program.
-Co
and -Cr
: These are options that tell the compiler to generate the control of ranges and overflow of arithmetic operations.
-gl
: Makes the compiler in case of runtime error, indicate the line of the source code where the error occurs.
-Mtp
: It is an option that causes the compiler to come closer to standard Pascal.
Source: Computing Institute (UDELAR Engineering Faculty).