Professional Documents
Culture Documents
interpreter compiler
1) It looks the source code line- 1) Looks at the entire source
by-line code.
2) It converts a line into 2) It converts the entire source
machine executable form, code into object-code. Object
executes the line, & code is then executed by the
proceeds with the next line. user.
3) Interpreter executes line-by- 3) For a given source code,
line, so executing the once it is compiled, the
program using an interpreter object code is created. this
means that the source code object code can be executed
is first interpreted & then multiple number of times by
executed the user.
Difference b/w compiler & interpreter
interpreter compiler
4) Both interpreter & source 4) During execution of the object
code is required during code, the compiler is not
execution. required.
5) Interpreter code runs slower 5) Compared to the interpreter it
than the compiled code. is fast.
linker
Linker is a program.
The source code of a program is very large, Consisting of
several hundred or more lines.
Source code may also include reference to libraries.
All these independent modules may not be stored in a single
object file.
The code is broken down into many independent modules for
easy debugging and maintenance.
Before execution, the modules & the required libraries are
linked together using the linker s/w.
The compiled & linked program are called the executable
code.
Loader
Loader s/w is used to load & re-locate the executable
program in the main memory.
Loader assigns storage space to the program in the main
memory for execution.
At runtime, the class loader loads the byte codes from the
hard disk, checks it, and runs it in an interpreter.
The interpreter executes the byte code & makes call to the
underlying h/w
2) Application s/w
It is a s/w that a user uses for accomplishing a specific task
is the application s/w.
Application s/w may be a single program or a set of
programs.
A set of programs that are written for a specific purpose &
provide the required functionality is called s/w package.
Example of application s/w packages are:
word processing s/w
image processing s/w
accounting s/w
Spreadsheet s/w
Presentation s/w
Web Browser s/w.
S/W ACQUISITION
Different kinds of s/ws are available in different ways.
The user may have to
1. purchase the s/w,
2. download for fee from the internet
3. can get it bundled along with the h/w.
4. available through cloud
Different ways in which the s/w are made available to users
are:
Retail s/w (ex: microsoft windows os)
OEM s/w (Original Equipment Manufacturer s/w)
Demo s/w--- (design to demonstrate what a purchased
version of the s/w is capable of doing & provides the
features.)
Shareware---(try for free for a specified period of time)
freeware---( free for personal use. The commercial
use of this s/w may require a paid license.)
public domain s/w---(free s/w. source code is publically
available for anyone to use.no license restriction. )
open source s/w---(source code of the s/w is available
& can be altered within the specified guidelines laid
down by the creator.)