Ch 0: Computer Architecture
Compilation System
- Pre-Processor (cpp)
: Preprocessing phase --> Modifies the original C program according to directives that begin with "#" character.
- Ex) #include <stdio.h> - Compiler (cc1)
: Complication phase --> Translates the text file hello.i into the text file hello.s, which contains an assembly-language program.
**Assembly language is same. - Assembler (as)
: Assembly phase --> Translate hello.s into machine-language instructions, packages them in a form known as a relocatable object.
**Machine-language instructions = Binary - Linker (ld)
: Linking phase --> Handles merging and generate an executable object file.
Hardware Organization
- BUS
- I/O Devices
- Main Memory
- Processor (CPU)
Simple Operations
- Load: main memory --> register
- Store: register --> main memory
- Operate: Copy the contents of two registers to the ALU and perform an arithmetic operation on the two words, and store the result in a register, overwriting the previous contents of that register.
- Jump: Extract a word from the instruction itself and copy that word into the PC(Program Counter), overwriting the previous value of the PC.
'Computer Architecture > 컴퓨터구조[05]' 카테고리의 다른 글
[CA] Lecture #07 (0) | 2023.09.25 |
---|---|
[CA] Lecture #06 (0) | 2023.09.19 |
[CA] Lecture #05 (0) | 2023.09.16 |
[CA] Lecture #04 (0) | 2023.09.13 |
[CA] Lecture #03 (0) | 2023.09.12 |