Lecture 1 - Programming Language Compiler Flashcards
6 (Importance of Studying Programming Languages)
Importance of Studying Programming Languages
- To improve your ability to develop effective algorithms
- To improve use of your existing programming language
- To increase your vocabulary of useful programming constructs
- To allow better choice of programming language
- To make it easier to learn a new language
- To make it easier to design a new language
6 (Importance of Studying Programming Languages)
Importance of Studying Programming Languages
- To improve your ability to develop effective algorithms
- To improve use of your existing programming language
- To increase your vocabulary of useful programming constructs
- To allow better choice of programming language
- To make it easier to learn a new language
- To make it easier to design a new language
?
is a computer program that transforms code written in a high-level programming language into the machine code
Compiler and Interpretation
Compiler
?
It is a program which translates the human-readable code to a language a computer processor understands (binary 1 and 0 bits)
Compiler and Interpretation
Compiler
?
compiler is only program and cannot fix errors found in that program.
Compiler and Interpretation
Compiler
?
is a computer program, which coverts each high-level program statement into the machine code. This includes source code, pre-compiled code, and scripts.
Compiler and Interpreter
Interpreter
?
do the same job which is converting higher level programming language to machine code.
Compiler and Interpreter
compiler and interpreters
?
will convert the code into machine code (create an exe) before program run
Compiler and Interpreter
compiler
?
convert code into machine code when the program is run.
Compiler and Interpreter
Interpreters
?
Compiled code runs faster
KEY DIFFERENCES OF COMPILER AND INTERPRETER
Compiler and Interpreter
Compiler
?
Interpreted code runs slower
KEY DIFFERENCES OF COMPILER AND INTERPRETER
Compiler and Interpreter
Interpreter
?
? takes an inter program
KEY DIFFERENCES OF COMPILER AND INTERPRETER
Compiler and Interpreter
Compiler
?
? takes a single line of code
KEY DIFFERENCES OF COMPILER AND INTERPRETER
Compiler and Interpreter
Interpreter
?
? will parse all of the language statements for its correctness. If incorrect, throws an error
KEY DIFFERENCES OF COMPILER AND INTERPRETER
Compiler and Interpreter
Compiler
?
No linking of files or machine code generation
KEY DIFFERENCES OF COMPILER AND INTERPRETER
Compiler and Interpreter
Interpreter