Unit-1 Introduction To Computer Fundamentals
Unit-1 Introduction To Computer Fundamentals
Fundamentals
Let’s describe all the parts as included within the above diagram one by one.
1. The Processor Unit (CPU): It is the brain of the PC system. All major
calculations and comparisons are made inside the CPU and it’s also liable for
activation and controlling the operation of another unit.
This unit consists of two major components, that are arithmetic logic unit
(ALU) and control unit (CU).
2. Arithmetic Logic Unit (ALU): Here arithmetic logic unit performs all arithmetic
operations like addition, subtraction, multiplication, and division. It also
uses logical operation for comparison.
3. Control Unit (CU): And the control unit controls the whole operation of the PC.
It also controls all devices like memory, input/output devices connected to the
CPU. Following are the three steps of the instruction execution cycle:
1. Fetch : This is the first step where the CPU 'fetches' an instruction
from the primary memory (RAM).
2. Decode: Right after fetching the instruction, the CPU 'decodes' it or
translates it into a series of actions it can understand.
3. Execute: Finally, the CPU 'executes' the instruction decoded in the
previous step. It carries out the actions dictated by the instruction.
4. Input/output Unit: These devices are used to enter data and instructions into
the computer. They act as a bridge between the user and the computer system.
6. Disk Storage Unit: Data and instruction enter into a computing system through
data input device need to stored inside the pc before actual processing start.
Two sorts of storage units are the first and auxiliary storage units.
i. **Primary Storage Unit:** Primary memory features a direct link with the
input unit and output unit. It stores the input file , calculation result.
ii. **Secondary Storage Unit:** The primary storage isn’t ready to store data
permanently for future use. So another sorts of storage technology are required
to store the info permanently for an extended time, it’s called secondary or
external storage .
4. Types of Software
Software can be broadly classified into two main categories:
1. System Software:
Controls the hardware and provides a platform for running application
software.
Examples: Operating System, Device Drivers, Utilities.
2. Application Software:
Designed to perform specific tasks for the user.
Examples: Word Processor (MS Word), Web Browser (Chrome), Games,
Databases.
Interpreter:
Assembler:
Linker:
Loader:
Loads the executable into memory, performs address binding, and starts
the program's execution.
Combines
Translates the Load
Translates Converts object
entire high- exec
and executes assembly files and
level program into
Definition the high- language code libraries
into machine and
level code into machine into a
code in one it f
line by line. code. single
go. exec
executable.
Execution Faster Slower Doesn't No direct No
Time execution execution as execute code; execution; tran
since it it translates only converts it prepares it p
translates the the code line assembly to the the
code once. by line machine code. executable. for
during exec
runtime.
Converts Load
Converts Translates Combines
assembly code mach
Translation entire source one line of machine
into object into
Method code into source code code
code (machine for
machine code. at a time. modules.
code). exec
No Does
Produces an Produces an
intermediate Produces an prod
object file or executable
object file, object file outp
Output executable file from
directly (machine file
after object
executes code). simp
translation. files.
instructions. into
Handles
Stops errors Does
Displays all
execution Reports related to hand
errors after
Error when the assembly unresolved erro
compilation,
Handling first error errors during references reli
stopping at
is translation. between the
none.
encountered. object this
files.
Generally
requires more Efficient use Works with Allo
Requires
memory since of memory as machine code, memo
Memory memory for
the entire only one line memory depends the
Usage the linking
program is is processed on the code duri
process.
compiled at at a time. size. exec
once.
____
### Summary
of
Components
and
Functions:
Component Description
--------------
--------------
----------- --------------
---------- --------------
--------------
-----------
Devices to
provide data
Input to the system
Devices (e.g.,
keyboard,
mouse).
Devices that
show the
result of
Output
processing
Devices
(e.g.,
monitor,
printer).
Primary and
secondary
memory that
Memory
stores data
and
instructions.
Manages
hardware
resources and
Operating
provides an
System
environment
for
applications.
Converts and
executes code
Interpreter line-by-line
during
runtime.
Converts
assembly
Assembler
language into
machine code.
Combines
object files
into a single
Linker
executable,
resolving
references.
Loads an
executable
into memory
Loader
and prepares
it for
execution.