How to compile in sublime text 3 using FPC 3.0 LINUX (Ubuntu)

1

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.

    
asked by Cookie Rabbit 25.10.2016 в 00:48
source

1 answer

1

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).

    
answered by 27.10.2016 / 14:02
source