Programming languages, translators and IDEs
도입됨
8:28
하드웨어 및 소프트웨어
새로운 컴퓨터가 있습니다. 모든 물리적 부품이 작동합니다 — 프로세서, 메모리, 화면, 키보드. 전원을 켜면 아무 일도 일어나지 않습니다. 데스크톱도 없고…
영어 내레이션 · 영어와 중국어 자막 전환 가능
이 수업의 내용
| English | 의미 |
|---|---|
| translator/trænˈsleɪtə/ | 번역기 |
| programs/ˈprəʊɡræmz/ | A set of instructions specifying operations for a computer to carry out. |
| programming language/ˈprəʊɡræmɪŋ ˈlæŋɡwɪdʒ/ | 프로그래밍 언어 |
| CPU/ˌsiː piː ˈjuː/ | |
| machine code/məˈʃiːn kəʊd/ | 머신 코드 |
| high-level language/haɪ ˈlevl ˈlæŋɡwɪdʒ/ | 고수준 언어 |
| portable/ˈpɔːtəbl/ | |
| low-level language/ləʊ ˈlevl ˈlæŋɡwɪdʒ/ | 저수준 언어 |
| hardware/ˈhɑːdweə/ | |
| binary/ˈbaɪnəri/ | A number system using base two, with the digits zero and one. |
| assembly language/əˈsemblɪ ˈlæŋɡwɪdʒ/ | 어셈블리 언어 |
| mnemonics/nɪˈmɒnɪks/ | |
| compiler/kəmˈpaɪlə/ | 컴파일러 |
| interpreter/ɪnˈtɜːprɪtə/ | 인터프리터 |
| Errors | |
| integrated development environment/ˈɪntɪɡreɪtɪd dɪˈveləpmənt enˈvaɪrənmənt/ | 통합 개발 환경 |
| code editor/kəʊd ˈedɪtə/ | A tool for writing and modifying source code, often with features that help identify its structure or mistakes. |
| run-time environment | |
| error diagnostics/ˈerə ˌdaɪəɡˈnɒstɪks/ | |
| auto-completion/correction | |
| prettyprinting/ˈpretɪprɪntɪŋ/ | |
| executable file | |
| source code/sɔːs kəʊd/ |
프로그래밍 언어 및 번역기
- 사람들은 프로그래밍 언어로 프로그램을 작성하지만, CPU는 머신 코드를 실행합니다.
- 언어는 고수준(high-level) 또는 저수준(low-level) 입니다.
- **번역기(translator)**는 프로그램을 머신 코드로 변환하며, IDE는 작성 과정을 돕습니다.
컴퓨팅 개념 실험실
Classify concrete examples by the computing idea they demonstrate.
고수준 언어와 저수준 언어 비교
- 고수준 언어(예: Python)는 영어처럼 읽히므로 작성/수정이 쉬우며, 이식성(portable) 이 있어 다양한 컴퓨터에서 실행됩니다.
- 저수준 언어는 하드웨어에 가깝습니다: 머신 코드(이_Handle, CPU에서 바로 실행)와 어셈블리 언어(머신 코드의 기호적 표현)입니다.
- 저수준 코드는 CPU에 종속적입니다. 하드웨어를 완전히 제어하거나 매우 빠르고 작은 코드가 필요할 때 사용됩니다.

고수준 언어는 인간 언어에 가까워 이식성이 높지만, 저수준 언어(어셈블리 및 머신 코드)는 하드웨어에 가깝고 특정 CPU에만 의존합니다

컴파일러는 전체 프로그램을 한 번에 머신 코드로 번역합니다; 인터프리터는 줄 단위로 번역하여 실행합니다.

A high-level language (like Python):
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
High-level languages are easy to read/write and portable; low-level languages are CPU-specific.
컴파일러 vs 인터프리터
| 컴파일러 | 인터프리터 | |
|---|---|---|
| 변환 | 전체 프로그램을 한 번에 | 줄 단위로 |
| 오류 | 모두 끝난 후 보고됨 | 첫 번째 오류에서 중단됨 |
| 완성된 프로그램 | 빠르게 실행되며, 번역기가 필요 없음 | 느리며, 인터프리터가 필요함 |
- 빠르고 완성된 프로그램을 공유하려면 컴파일러를 사용하고, 작성 및 테스트 중에는 인터프리터를 사용하십시오.

운영 체제는 소프트웨어입니다 — 하드웨어에게 무엇을 할지 지시하는 프로그램들입니다.

Match each term to what it is.
난이도 2/5 · 140코인 + 오늘 첫 완료 시 작은 보너스 추가
High-level → readable; machine code → binary; a compiler translates once, an interpreter goes line by line.
A compiler:
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
A compiler translates everything once into a fast stand-alone program; an interpreter goes line by line.
An interpreter translates the whole program once, so it runs fast without the interpreter; a compiler translates line by line.
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
False. They are swapped: a compiler translates the whole program once and the result runs without it, while an interpreter translates and runs line by line, stopping at the first error.
통합 개발 환경(IDE)
- IDE는 프로그램을 작성하는 도구들을 하나의 장소에 모읍니다:
- 코드 에디터, 런타임 환경, 번역기, 오류 진단, 자동 완성/수정, 그리고 포맷팅(깔끔한 색상 + 줄바꿈).

하드웨어는 물리적인 부분이고, 소프트웨어는 프로그램입니다

Which is a feature of an IDE?
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
An IDE bundles an editor, translator, run-time, diagnostics, auto-complete and prettyprinting.
이 카드는 새로 추가되어 번역이 준비될 때까지 영어로 표시됩니다.
Worked example: choosing a translator
A team is writing a game. While they are developing it they test small changes often; at the end they will sell it to customers. Which translator suits each stage?
- During development: an interpreter. It runs the code line by line straight away and stops at the first error, showing where it is, so each small change can be tested quickly.
- For sale: a compiler. It translates the whole program once into an executable file 可执行文件. Customers run it without needing the translator, it runs fast, and the source code 源代码 stays hidden.
Which translator converts assembly language into machine code?
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
Each assembly mnemonic maps to one machine-code instruction, which an assembler translates.
A compiler reports all the errors it finds after translating the whole program.
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
An interpreter stops at the first error; a compiler gives an error report for the whole program.
이해했습니다
- 고수준(high-level) = 영어와 유사하며 이식성이 있음; 저수준(low-level) = 머신 코드(이진) / 어셈블리, CPU 전용
- 번역기는 코드를 머신 코드로 변환합니다; 컴파일러(전체 프로그램 한 번에) vs 인터프리터(줄 단위로)
- 컴파일러 → 빠르고 완성된 프로그램; 인터프리터 → 쉬운 테스트
- IDE는 에디터, 번역기, 진단, 자동 완성 및 아름다운 출력을 묶어놓은 것
어떤 문제가 있었나요? 사이트 팀만 이 내용을 볼 수 있습니다.