1. Introduction to Computer System
1. Introduction to Computer System
Anuja Nair
Assistant Professor
Computer Science & Engineering Department
Institute of Technology
Nirma University
Computer Architecture
Hardware
• Computer hardware is the collection of physical elements that constitutes
a computer system.
• Example: monitor, mouse, keyboard, computer data storage, hard drive disk (HDD),
system unit (graphic cards, sound cards, memory, motherboard and chips), etc. all of
which are physical objects that can be touched.
Software
• Computer software, or simply software, also known as computer programs, is the
non-tangible component of computers.
• It represents the set of programs that govern the operation of a computer system and
make the hardware run.
• Computer software contrasts with computer hardware, which is the physical
component of computers.
• One major example is operating system. All computers require an operating system.
E.g. OS ( Disk operating System, Windows, Linux, Mac etc.)
Types of Software
• System Software
• To control operation and extend the processing capabilities of computer system.
• e.g. Operating System, Compiler, Assembler, etc.
• Application Software
• Designed for user specific need.
• General purpose
• e.g. MS Office, Excel etc.
• Specific purpose
• Custom built according to requirement of user.
System Software
• Operating System
• Compiler : translates high level language to machine level language
• Assembler : translates assembly or low level language to machine language
• Loader : which loads OS part and object program into main memory for execution purpose.
E.g. bootstrap loader.
• Linker : which binds code of source and library file to make executable programs.
• Editor : used to write a program.
• Translator : which converts one language into other. (Compiler, Assembler, Interpreter)
• Macro processor : Replace symbolic meaning into equivalent code. Also, called pre-processor.
• Interpreter : translates line by line high level language into machine language.
Register
• A component inside a central processing unit for storing information
Central Processing Unit (CPU)
• A central processing unit (CPU) is the hardware within a computer that carries out
the instructions of a computer program by performing the basic arithmetical, logical,
and input/output operations of the system.
• CPU is a combination of ALU (arithmetic logic unit) and CU (Control Unit).
• ALU
• It performs all arithmetic calculations and takes logical decision.
• CU
• It manages and coordinates operations of all other components of computer system.
• It tells the computer's memory, arithmetic and logic unit and input and output devices how to
respond to the instructions that have been sent to the processor.
Bus and System Bus
• In computer architecture, a bus is a communication system that transfers data between
components inside a computer, or between computers.
• This expression covers all related hardware components (wire, optical fiber, etc.) and
software, including communication protocols.
• Can be parallel or serial.
Memory Unit
• Storage unit for processing data and information.
• Holds instructions and data needed for programs that are currently running
• Two types of storage:
• Primary/Main storage
• Secondary storage
Classification of Main Memory
1. Random Access Memory (RAM)
1. Stores current program or data.
2. Stores temporary data of current program.
3. Less space in comparison to secondary storage.
4. Volatile (data losses on power off)
5. Comparatively more expensive.
6. Fast in operation.
• e.g. Hard disk (HDD), CD, DVD, Pen Drive, Removable hard disk
Input Devices
• Accept data and instructions from the user or from another computer system.
• Example: Keyboard, Mouse, Scanner, Mike
14
Output Devices
Return Processed data back to the user or other computer system
Example: Printer, Monitor, Speaker
15
Classification of programming languages
• Machine or Low level language
• Assembly language
• High level language
19
Compilers
20
Assembler
• An assembler is a program that takes basic computer instructions (assembly language)
and converts them into a pattern of bits (machine language) that the computer's
processor can use to perform its basic operations.
• e.g. Microprocessor 8085, 8088.
• Instruction: ADD R1, R2