Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Machine Architectures
Computer:
An integrated set of algorithms and
data structures capable of storing
and executing programs.
Components
• Data - types of elementary data items
and data structures to be manipulated
• Hardware
• Firmware
• Software
Hardware
CPU (Central processing Unit)
I/O devices -
Control Unit keyboard,
mouse, disk
Arithmetic Logical Unit
drives, etc
Inboard memory
registers
Outboard
cache memory storage -
disks, CDs
main memory
Hardware-level operations
• Fetch-execute cycle:
• Processor fetches an instruction from
memory.
• Processor executes the fetched instruction
• Translation (Compilation)
• Interpretation
Translation
Input: high-level language program
Output: machine language code
Types of translation (high to low-level):
Preprocessor
Compiler
Assembler
Loader (usually part of the operating system)
Advantages: efficient executables
Interpretation
Program:
data + operations on these data
Computer:
implementation of data structures +
implementation of operations
Hardware, Firmware, and Software
computer
Hardware computer: elementary data
items, very simple operations
Firmware computer: elementary data
items, machine language instructions (we
may have specialized processors e.g.
vector multiplication)
• language definition
• language implementation
• translation
• execution
Binding