Homepage Wiki Forum Buy

Pascal

From GNUBLIN


Installation

To install the debian packages for pascal you need to have an internet connection on GNUBLIN. With the standard Gnublin network adapter it is explained here. After this you can download pascal support with the following command:

apt-get install fpc

Hello World

Create a file Inter1.pas with the following command:

nano Inter1.pas

Write these lines into the file:

program Inter1;
 
 begin
   WriteLn ('Hello World!')
 end.

After this save the file with CTRL+O, ENTER, CTRL+X

now you can compile the program with the following command:

fpc Inter1.pas


And after this you can run it with the following command:

./Inter1

The output is:

Hello World!
In other languages