티스토리 뷰

CS

Interpreter vs Compile

고우어해드 2020. 2. 1. 23:33

Interpreter

- Easy debugging (실행할때 하나하나씩 읽기 때문에 디버깅 편함)

- Slower

 

Interpreters have all of the defined functions in the interpreter itself and then when you invoke a function or list of instructions it reads each command one after the other. Converting as it goes along; however this is slow as it looks at each line and converts them one by one. It’s constantly looking back at the script, then executing, then looks back at the script and so forth till it has finished.

Compile

- Harder debugging (오류가 발생해도 끝까지 실행해버림)

- Faster (모두 기계어로 번역한 후 실행하기때문에 빠름)

 

Compilers take all of your functions and instructions and convert the whole script into ones and noughts or machine code, note they can also convert into hex code but that’s for another lecture. All instructions are converted and these instructions can be run straight way. There’s no looking back with compilation as the interpreter did by looking back to the script, then executing, then look back at the script and so forth. The compiler has already converted all the code and will run when it sees fit.

 

'CS' 카테고리의 다른 글

AOT vs JIT  (0) 2020.01.31
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/08   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
글 보관함