Programming languages, translators and IDEs
導入済みこのレッスンの内容
| 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/ | 統合開発環境(IDE) |
| 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は機械語を実行します。
- 言語は高レベルまたは低レベルです。
- 翻訳者はプログラムを機械語に変換し、IDEは記述をサポートします。
コンピューティング概念ラボ
Classify concrete examples by the computing idea they demonstrate.
高レベルと低レベル
- 高レベル言語(例:Python)は英語のように読め、書きやすく、修正が容易で、ポータブル(異なるコンピューターで動作)です。
- 低レベル言語はハードウェアに近い:機械語(バイナリ、CPUで直接実行)とアセンブリ言語(機械語のための助記憶符号)。
- 低レベルコードはCPU固有であり、ハードウェアの完全な制御や非常に高速・小型のコードが必要な場合に使用されます。

高レベル言語は人間の言語に近くポータブルですが、低レベル言語(アセンブリと機械語)はハードウェアに近く、特定のCPUに依存します

コンパイラは一度に全プログラムを機械語に翻訳します;インタプリタは1行ずつ翻訳して実行します。

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.
コンパイラとインタプリタ
| コンパイラ | インタプリタ | |
|---|---|---|
| 翻訳 | プログラム全体を一度に | 1行ずつ |
| エラー | 末尾で一括報告 | 最初のエラーで停止 |
| 完了したプログラム | 高速で実行、翻訳器不要 | 遅く、インタプリタが必要 |
- コンパイラを使って高速な完成版プログラムを共有し、インタプリタを使って作成やテストを行う。

オペレーティングシステムはソフトウェアである — ハードウェアに何をするか指示するプログラム群。

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は、プログラム作成に必要なツールを1箇所にまとめる:
- コードエディタ、ランタイム環境、翻訳器、エラー診断、自動補完/修正、フォーマット表示(整った色付け+インデント)。

ハードウェアは物理的な部品、ソフトウェアはプログラム

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.
理解できましたか
- ハイレベル = 英語に似ており、ポータブル;ローレベル = マシンコード(バイナリ)/アセンブリ、CPU固有
- トランスレーター はコードを機械語に変換する。コンパイラ(プログラム全体を一括変換)とインタプリタ(行単位で逐次解釈)がある。
- コンパイラ → 高速な完成版プログラム;インタプリタ → 簡単なテスト
- IDEはエディタ、翻訳器、診断、自動補完、フォーマット表示をバンドルしている
何が問題でしたか?この内容はサイトの運営チームだけが確認します。