Programming languages, translators and IDEs
Introduzido| English | Significado |
|---|---|
| translator/trænˈsleɪtə/ | tradutor |
| programming language/ˈprəʊɡræmɪŋ ˈlæŋɡwɪdʒ/ | linguagem de programação |
| machine code/məˈʃiːn kəʊd/ | código de máquina |
| high-level language/haɪ ˈlevl ˈlæŋɡwɪdʒ/ | linguagem de alto nível |
| low-level language/ləʊ ˈlevl ˈlæŋɡwɪdʒ/ | linguagem de baixo nível |
| assembly language/əˈsemblɪ ˈlæŋɡwɪdʒ/ | linguagem de montagem |
| compiler/kəmˈpaɪlə/ | compilador |
| interpreter/ɪnˈtɜːprɪtə/ | interpretador |
| integrated development environment/ˈɪntɪɡreɪtɪd dɪˈveləpmənt enˈvaɪrənmənt/ | ambiente integrado de desenvolvimento |
Languages and translators 翻译程序
- People write programs in a programming language 编程语言; the CPU runs machine code 机器码.
- Languages are high-level or low-level.
- A translator converts a program to machine code — and an IDE helps you write it.
Laboratório de conceitos de computação
Classify concrete examples by the computing idea they demonstrate.
High-level vs low-level
- A high-level language 高级语言 (e.g. Python) reads like English — easy to write/fix and portable (runs on different computers).
- A low-level language 低级语言 is close to the hardware: machine code (binary, run directly by the CPU) and assembly language 汇编语言 (mnemonics for machine code).
- Low-level code is CPU-specific — used when you need full hardware control or very fast, small code.

A high-level language (like Python):
Dificuldade 1/5 · Moedas 100 + pequeno bônus na primeira conclusão hoje
High-level languages are easy to read/write and portable; low-level languages are CPU-specific.
Compiler vs interpreter
| Compiler | Interpreter | |
|---|---|---|
| Translates | the whole program at once | one line at a time |
| Errors | all reported at the end | stops at the first error |
| Finished program | runs fast, no translator needed | slower, needs the interpreter |
- Use a compiler to share a fast finished program; an interpreter while writing and testing.

Match each term to what it is.
Dificuldade 2/5 · Moedas 140 + pequeno bônus na primeira conclusão hoje
High-level → readable; machine code → binary; a compiler translates once, an interpreter goes line by line.
A compiler:
Dificuldade 1/5 · Moedas 100 + pequeno bônus na primeira conclusão hoje
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.
Dificuldade 1/5 · Moedas 100 + pequeno bônus na primeira conclusão hoje
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.
Integrated development environment 集成开发环境 (IDE)
- An IDE puts the tools to write programs in one place:
- a code editor, a run-time environment, a translator, error diagnostics, auto-completion/correction, and prettyprinting (neat colour + indentation).

Which is a feature of an IDE?
Dificuldade 1/5 · Moedas 100 + pequeno bônus na primeira conclusão hoje
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?
Dificuldade 1/5 · Moedas 100 + pequeno bônus na primeira conclusão hoje
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.
Dificuldade 1/5 · Moedas 100 + pequeno bônus na primeira conclusão hoje
An interpreter stops at the first error; a compiler gives an error report for the whole program.
You've got it
- high-level = English-like, portable; low-level = machine code (binary) / assembly, CPU-specific
- a translator turns code into machine code; compiler (whole program at once) vs interpreter (line by line)
- compiler → fast finished program; interpreter → easy testing
- an IDE bundles editor, translator, diagnostics, auto-complete and prettyprinting