Unit-1 1 (PPS)
Unit-1 1 (PPS)
Unit-1 1 (PPS)
1(PPS)(BCS201)
Unit-1
Pseudo code
Memory:
Memory is a place in computer where we can store the data. Generally,
memory/storage is classified into 2 categories:
1) Volatile Memory: This loses its data, when power is switched off.
@Jeetesh Srivastava[UCER(CSE)]
Unit-1.1(PPS)(BCS201)
@Jeetesh Srivastava[UCER(CSE)]
Unit-1.1(PPS)(BCS201)
Memory Hierarchy
@Jeetesh Srivastava[UCER(CSE)]
Unit-1.1(PPS)(BCS201)
Cache Memory:
@Jeetesh Srivastava[UCER(CSE)]
Unit-1.1(PPS)(BCS201)
➢ Whenever the CPU needs to access memory, it first checks the cache
memory. If the data is not found in cache memory then the CPU
moves onto the main memory. It also transfers block of recent data
into the cache and keeps on deleting the old data in cache to
accommodate the new one.
Computer Registers
@Jeetesh Srivastava[UCER(CSE)]
Unit-1.1(PPS)(BCS201)
RAM allows the computer to read ROM stores all the application
data quickly to run applications. which is needed to boot the
7
computer initially. It only allows
for reading.
@Jeetesh Srivastava[UCER(CSE)]
Unit-1.1(PPS)(BCS201)
2 The high-level code can run on The machine code cannot run on all
all the platforms, so it is a machines, so it is not a portable
portable language. language.
@Jeetesh Srivastava[UCER(CSE)]
Unit-1.1(PPS)(BCS201)
COMPILER INTERPRETER
Ques: What is the difference between .obj and .exe file in C?[2016-
2017,2018-2019]
Object Code-
The computer does not understand the source program or the source code.
Therefore, the compiler converts the source program into an object
program.
8
@Jeetesh Srivastava[UCER(CSE)]
Unit-1.1(PPS)(BCS201)
Executable code-
Executable (also called the Binary) is the output of a linker after it
processes the object code. A machine code file can be
immediately executable (i.e., runnable as a program), or it might
require linking with other object code files (e.g. libraries) to produce a
complete executable program.
@Jeetesh Srivastava[UCER(CSE)]
Unit-1.1(PPS)(BCS201)
Structured Programming :
Some utility programs like device These are portable to any type of
3. drivers are also system softwares. platform/Operating system
These are generally hardware
specific.
Example : Operating system, MS Office, Adobe photo shop,
4. Device drivers, compilers, linker , Gaming softwares,
10
@Jeetesh Srivastava[UCER(CSE)]
Unit-1.1(PPS)(BCS201)
11
@Jeetesh Srivastava[UCER(CSE)]