deer-develop / study

2 stars 0 forks source link

6장 어셈블러 #25

Open myeongjae-kim opened 4 months ago

myeongjae-kim commented 4 months ago

Someone must be responsible for managing all these symbols. In particular, someone must remember that SCREEN stands for 16384, that LOOP stands for 312, that sum stands for some other address, and so on. This symbol-handling task is one of the most important functions of the assembler.

이전까지 어셈블러는 기계어와 1:1대응 역할만 한다고만 생각했는데, 변수와 레이블등의 기능도 있고 이 기능을 위해 symbol table이 필요하다는걸 책을 보면서 알았다.

deerhamyungjin commented 4 months ago

5장 컴퓨터 아키텍쳐 아니야???

근데 나도 6장 어셈블러 읽음....

myeongjae-kim commented 4 months ago

어셈블러 vs 컴파일러

어셈블러는 기계어에서 표기법만 바뀔 뿐 다른 언어라고 생각이 들진 않는데, 컴파일러는 기계어와 완전히 다른 어떤 언어를 기계로 바꾸는게 둘의 차이점 인 것 같다

컴파일러는 '의미(semantic)'를 분석할 수 있다