Professional Documents
Culture Documents
Lecture 2
Lecture 2
Mohammad Rokonuzzaman
26.10.2016
EEE-313
What is a computer???
A general purpose machine that can perform
any computational task
Program
A set of instruction
to perform a task
If any of the program can not perform the task you want, then
you can write your own program.
Now
What language should I use to give those instructions?
But why.
1 2 3
ADD -0001
0001 00000100 00000101 SUB - 0010
COMP- 0101
ADD 04, 05
int sum;
sum = 4 +5 ;
Assembly Language
Assembler
Machine language
Compiler
Machine language
Need compilation
Easy to learn
It can be used to write any complex code.
Efficient and fast.
Portability : Program written in one computer can
run in another computer with little or no notification