Languages, Translators and IDEs
High-level and low-level languages, the programs that translate between them, and the tools you write code in.
- Click the stages below in the order they happen.
//High-level vs low-level
High-level (Python, C++) is close to English, quick to write, easier to debug and works on different machines — but must be translated and gives less direct control. Low-level (assembly, machine code) is specific to one processor, harder to write, but allows precise control of the hardware and produces efficient code.
//Compiler vs interpreter
This comparison is examined constantly. Learn it as a table.
Compiler Interpreter
translates whole program at once one line at a time
produces an executable file nothing saved
errors listed all at the end stops at the first one
running speed faster slower
needs translator no, once compiled yes, every time
good for finished software learning and testing//IDE features
Code editor with syntax highlighting and auto-complete, line numbering, error diagnostics, a debugger with breakpoints and variable watches, auto line-indent, and a build/run tool. Each of these makes writing and finding mistakes in code faster.
CHECK YOURSELF
1.You are learning to program and want errors reported one at a time as you go. Which translator suits you?
2.What does a compiler produce that an interpreter does not?
3.Which is a benefit of a high-level language over assembly?