History of Intel CPUs*
16-bit processor, up to 1MB RAM, available in
5,6,8 and 10 MHz, 29K transistors.
chosen for the first IBM PC.
up to 16MB RAM, up to 20 MHz, 134K transistors,
virtual memory and protected mode.
32-bit processor, up to 4GB RAM,
up to 33 MHz, 275K transistors,
integrated FPU, 8KB on-chip cache.
up to 200MHz, two 8K caches.
RISC chip, more stages in pipeline,
on-board L2 cache.
MMX instruction, dynamic execution,
up to 450MHz.
SSE instruction, up to 1+GHz.
Hyper pipeline, Rapid execution engine,
Execution trace cache, 3.8+GHz.
This course is about computer organization and assembly languages.
You might wonder why learning assembly languages. After all, who will
write assembly programs these days.
Actually, people still write assembly for faster codes (compiler
is not as smart as men yet), smaller codes (for devices with limited
amount of memory such as mobile devices) and specific architectures
(in which there are not even compilers, for example, early GPUs).
With these in mind, in addition to the fundamentals about assembly
programming, this course emphasizes on code optimization techniques
on writing fast and small codes. This course is divided into three parts:
- TOY. we will
teach a virtual machine called TOY, developed by Princeton. This is
a machine with ancient designs. However, modern computers evolve
from such simple designs and share the same princeples with TOY.
By learning TOY, you will understand why computers work in the way
they work. In addition, you will have you first bite of assembly
programming using our own home-brewed TOY assembler and emulator.
- ARM. ARM processors is a widely used processor for its
power saving capability. It has been used in Gameboy Advance, iPod,
mobile phones, iPhone and many other devices. It is a RISC machine
as its name suggests. Thus, its instruction set is of a moderate size
and its architecture is simple. You will develop your first real assembly
program for ARMs. In addition, we will teach architecture and programming
for Gameboy Advance (GBA). GBA is a good platform to learn low-level
programming as your program has to control everythings itself. In addition,
there is nothing with more fun than seeing your programming running on
such a lovely console.
- Intel. For the third part, we will move to Intel x86 assembly
programming. Such processors are widely available on your desktop. In addition
to the fundamental programming for x86, we will also cover advanced
topics such as float-point programming and SIMD programming.
2:20pm-5:20pm every Monday
CSIE Room 103
TA Office hours:
13:20-14:10 Monday Room 108
13:20-14:10 Thursday Room 108
- 4~5 assignments (56%)
- class participation (4%)
- midterm exam (16%)
- final project (24%)
Syllabus (topics we might cover):
- Combinational circuits
- Sequential circuits
- TOY architecture
- TOY programming
- Assembly language fundamentals
- ARM architecture
- ARM programming
- Gameboy advance architecture
- Gameboy advance programming
- IA-32 Processor Architecture
- Data Transfers, Addressing,and Arithmetic
- Conditional Processing
- Integer Arithmetic
- Strings and Arrays
- Structures and Macros
- High-Level Language Interface
- Real Arithmetic
- Code Optimization
- Writing toy OS