Академический Документы
Профессиональный Документы
Культура Документы
Syllabus
1.1
Basic Computer
Architecture
1.2
1.3
Lesson Outcomes
1.
2.
3.
Brainstorming
Address bus
Control bus
Data bus
Bus System
- It is used to transfer information in the system
6
Enables a
computer
to store,
at least
temporarily,
data and
programs.
- data and
instructions
enter a computer
-lets you see what
the
-computer has
-accomplished
Hardware:
all of the tangible equipment involved in
a computers operation. (e.g Processor,
Hard disk, Keyboard, Printer)
Software:
set of instructions that can be read into
computers memory and later execute on
demand. (e.g.: Microsoft office)
Firmware:
hardware device that is programmed
using software. (e.g. EEPROM)
YAW- credit to HAA,RAK & AIH
Programming language
Machine Language
Built-in to the CPU
Binary code
Alternative codes:
Octal
Example:
Hexadecimal
bits & bytes
10
00000000
00010101
00010110
00110101
01110111
Assembly Language
Symbolic/mnemonics
codes
Unstructured
Processor dependent
Assembler translate to
machine language
11
Example:
CLR
MOV A,#2
ADD A,#2
MOV R0,A
END
12
C Programming Language
History
1972 by Dennis Ritchie
Based on B/BCPL
OS language (UNIX)
ANSI/ISO C (1989/99)
Evolution
13
C++, C#, Ch
Borland C/C++
Visual C/C++
C advantages
Embedded ability
Bit-manipulation
Low high (mid) level
language
Libraries and
other object
code
Source
code file
(FILE.C)
Editor
(create and modify
code)
Object code
file (FILE.OBJ)
Compiler
(convert source
code into m/c code)
Memory
(RAM or ROM)
14
Executable
file
(FILE.EXE)
15
Errors in Programming
Compilation error
Syntax error
Easy to identify and
corrected
16
Logic error
Programmer error
Not easy to identify
and correct
May cause run-time
error
Development Environment
What you needs?
A source code editor
A compiler and linker
An optional debugger
Integrated Development Environment - IDE
All-in-One application (programming) software
17
Code::blocks Compiler
MinGW ANSI C/C++ (C99) compiler
OSS Licensed IDE for developer
Source editor
Compiler & Linker
Debugger
http://www.codeblocks.org
18
DEVCpp Compiler
MinGW ANSI C/C++ (C99) compiler
OSS License IDE for developer
Source editor
Compiler & Linker
Debugger
19
20
21
END OF CHAPTER 1
Q& A
Outcomes
1.
2.
3.
22
Reflection