Please enable JavaScript.
Coggle requires JavaScript to display documents.
Principles of Programming - Coggle Diagram
Principles of Programming
Levels of Languages
High
Machine code
Low
Translation Programs
Compiler
Read at start then creates executable which executed fast
Interpreter
Reads as it executes slower than complier
Assembler
Takes low level language translates to machine code
Types of error
Logical error
When code does not work as intended
Syntax
breaks rules of language in some way
Runtime error
E.g devision by zero asked computer do something impossible
Linking error
Not imported module properly
Rounding error
Inaccuracy when rounding e.g error of 0.5
Truncation error
introduces inaccuracy
Complilation process
1.Lexical analysus +symbol table construction
Simple error checking ,constants keywords tokenised
2.Syntax analysis
3.Semantic anaysis
Code generation
Code optimisation