YYYEJI

[CS] High-Level Language to Machine Language 본문

Computer architectures

[CS] High-Level Language to Machine Language

YEJI ⍢ 2022. 9. 19. 14:03
728x90

Levels of Code

High Level Language Program 

Assembly Language Program

Machine Language Program

 

 

How to translate ? ? ?

When high-level language is translated into assembly language,

to use a compiler.

 

 

When assembly language is tranlated into machine language,

to use an assembler.

 

 

 

High-lever language

(Machine independent)

temp = a;

a = b;

b = temp;

 

 

Assembly language

lw   $15,   0($2)

lw   $16,   4($2)

sw   $16,   0($2)

sw   $15,   0($2)

 

 

Machine language

0000 1001 1100 0110 

0000 1001 0101 1000

1100 0110 1010 1111

1100 0110 0000 1001

 

 

High and low signals on control lines.

 

 

 

What is the instruction ? ? ?

C = A + B;

 

Different instruction means the same meaning but different computer language used.

 

 

 

 

Note

SoC - System on Chip

(If you put various functions of the computer in the chip, 

it becomes a chip that functions as a computer.)

 

 

 

 

◡̈

 

'Computer architectures' 카테고리의 다른 글

[CS] Instruction 구성  (0) 2022.09.19
[CS] Special Purpose Registers  (0) 2022.09.19
[CS] 레지스터(Register)란  (0) 2022.09.19
[CS] Computer System 간단하게 맛보기  (0) 2022.09.19
[CS] Machine Structures  (0) 2022.09.19