Pascal Environment Setup
Pascal Environment Setup
http://www.tutorialspoint.com/pascal/pascal_environment_setup.htm
Copyright tutorialspoint.com
For most of the examples given in this tutorial, you will find a Try it option in our
website code sections at the top right corner that will take you to the online compiler.
So just make use of it and enjoy your learning.
There are several Pascal compilers and interpreters available for general use. Among these are
Turbo Pascal provides an IDE and compiler for running Pascal programs on CP/M, CP/M86, DOS, Windows and Macintosh.
Delphi provides compilers for running Object Pascal and generates native code for 32and 64-bit Windows operating systems, as well as 32-bit Mac OS X and iOS. Embarcadero is
planning to build support for the Linux and Android operating system.
Free Pascal it is a free compiler for running Pascal and Object Pascal programs. Free
Pascal compiler is a 32- and 64-bit Turbo Pascal and Delphi compatible Pascal compiler for
Linux, Windows, OS/2, FreeBSD, Mac OS X, DOS and several other platforms.
Turbo51 It is a free Pascal compiler for the 8051 family of microcontrollers, with Turbo
Pascal 7 syntax.
Oxygene It is an Object Pascal compiler for the .NET and Mono platforms.
GNU Pascal GPC It is a Pascal compiler composed of a front end to GNU Compiler
Collection.
We will be using Free Pascal in these tutorials. You can download Free Pascal for your operating
system from the link: Download Free Pascal
rpm -i fpc-X.Y.Z-N.ARCH.rpm
Where X.Y.Z is the version number of the .rpm file, and ARCH is one of the supported architectures
i386, x866 4, etc. .
Installation code for the Debian version likeUbuntu:
dpkg -i fpc-XXX.deb
Text Editor
This will be used to type your program. Examples of few editors include Windows Notepad, OS Edit
command, Brief, Epsilon, EMACS, and vim or vi.
Name and version of text editor can vary on different operating systems. For example, Notepad
will be used on Windows and vim or vi can be used on windows as well as Linux or UNIX.
The files you create with your editor are called source files and contain program source code. The
source files for Pascal programs are typically named with the extension .pas.
Before starting your programming, make sure you have one text editor in place and you have
enough experience to write a computer program, save it in a file, compile it and finally execute it.
Loading [MathJax]/jax/output/HTML-CSS/fonts/TeX/fontdata.js