본문 바로가기

Computer System

Introduction to Assembly Language

- Assembly Language is used to control directly computer hardware via communicating with the OS.

- Assembly Langauge could be used to design programs on embedded systems.

- Just by studying Assembly Language, we could have a better understanding about the computer architecture and operating system.

 

- Benefits of programming in Assembly Language are speed, versatility, flexibility, and compact.

- 'Versatility' means that anything that can be done with a computer can be done with Assembly Language.

- 'Flexibility' means that there exists multiple ways to accomplish one task than High Level Languages.

 

 

 

How Programming Language is read by the computer

- After compiling, the assembler and linker, loader changes into a binary code that the computer can read.

- 'Assembler' converts assembly code into machine code.

- 'Linker' combines individual files into a single executable program.

 

Specific Machine Levels

- In programming language analogy, 'Langauge L0' is a native machine language read by the computer, while 'Language L1' is a more human-friendly language usually constructed above machine langauge.

- 'Interpretation' is the L0 program interpreting and executing L1 instructions one by one.

- 'Translation' is L1 program being completely translated into L0 program, and then running on the computer hardware.

 

- Assembly Language has a one-to-one relationship with machine language.