0% found this document useful (0 votes)
45 views14 pages

Beginner's Guide to Programming Setup

The document outlines the essential components needed for a programming environment, including a text editor, compiler, and interpreter. It explains that a text editor is used to write code, a compiler converts code into binary format for execution, and an interpreter executes code directly without compilation. Specific examples of programming languages that require compilers or interpreters are provided, emphasizing the need to install the appropriate software before programming.

Uploaded by

J A Y T R O N
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views14 pages

Beginner's Guide to Programming Setup

The document outlines the essential components needed for a programming environment, including a text editor, compiler, and interpreter. It explains that a text editor is used to write code, a compiler converts code into binary format for execution, and an interpreter executes code directly without compilation. Specific examples of programming languages that require compilers or interpreters are provided, emphasizing the need to install the appropriate software before programming.

Uploaded by

J A Y T R O N
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 14

Programming Environment

LESSON TWO
Programming Environment

When we say Environment Setup, it


simply implies a base on top of which we
can do our programming.
Thus, we need to have the required
software setup ,i.e., installation on our PC
which will be used to write computer
programs, compile, and execute them.
Programming Environment

Similarly, you will need the following


setup to start with programming using any
programming language.
◦ A text editor to create computer programs
◦ A compiler to compile the programs into
binary format
◦ An interpreter to execute the programs directly
Text Editor

A text editor is a software that is used to


write computer programs.
Your Windows machine must have a
Notepad, which can be used to type
programs.
You can launch it by following these
steps:
◦ Start Icon → All Programs → Accessories →
Notepad → Mouse Click on Notepad
Text Editor

You can use this software to type your


computer program and save it in a file at
any location.
You can download and install other good
editors like Notepad++, which is freely
available.
Compiler

You write your computer program using


your favorite programming language and
save it in a text file called the program
file.

Now let us try to get a little more detail


on how the computer understands a
program written by you using a
programming language.
Compiler

Actually, the computer cannot understand


your program directly given in the text
format, so we need to convert this
program in a binary format, which can be
understood by the computer.
Compiler

The conversion from text program


to binary file is done by another
software called Compiler and
this process of conversion from
text formatted program to binary
format file is called program
compilation.
Compiler

Finally, you can execute


binary file to perform the
programmed task.
We are not going into the
details of a compiler and the
different phases of
compilation.
Compiler

So, if you are going to write your


program in any such language,
which needs compilation like C,
C++, Java and Pascal, etc.,
◦ then you will need to install their
compilers before you start
programming.
Interpreter
We just discussed about compilers
and the compilation process.
Compilers are required in case you
are going to write your program in a
programming language that needs to
be compiled into binary format
before its execution.
Interpreter
There are other programming languages
such as Python, PHP, and Perl, which do
not need any compilation into binary
format,
rather an interpreter can be used to read
such programs line by line and execute
them directly without any further
conversion.
Interpreter
So, if you are going to write
your programs in PHP,
Python, Perl, Ruby, etc.,
then you will need to install
their interpreters before you
start programming.
End of Lesson

You might also like