1.4. The Science of Building a Compiler


1.4.1. Modeling in Compiler Design and Implementation


Lexical units of program에 finite-state machines, regular expressions 기능의 모델 유용함.


1.4.2. The Science of Code Optimization


- Compiler에 의해서 생성된 코드는 일반 코드보다 빠름.

- 복잡해져서 코드 개선의 기회가 많아짐.


- Compiler 설계의 목표에 있어서 다음 4가지는 반드시 지켜져야 한다.

1. 컴파일러는 완벽해야한다. (정확해야함)


2. effective (효율적이어야함)

Typically, the same optimization that speed up execution time also conserve power


3. 짧은 컴파일 시간 제공. 개발과 디버깅을 위해서 (내 생각에 Android Studio는 이 부분에 있어서 ㅈ망인듯)


4. 단순해야함. - 기술과 컴파일 유지 비용 관리를 위해서.

+ Recent posts