Program Construction Flashcards
1
Q
Stages of compilation
A
lexical analysis symbol table construction syntax analysis semantic analysis code generation optimisation
2
Q
What is symbol table construction
A
It is a table that sores the names and addresses of all variables, constants and arrays
Variable are checked to make sure they have been declared and to determine the data types used
3
Q
What is optimisation?
A
It makes theprogram more efficient so it runs faster and uses fewer resouces
4
Q
Tools that help the programmer write clear,maintainable code
A
editors runtime environments automatic line numbering error diagnosis colour coding debugger trace break points variable watch auto-correct auto-suggestion auto-indent linker loader compiler interpreters
5
Q
Types lf programming errors
A
syntax runtime/execution logical linking rounding truncation
6
Q
Whta is a runtime eroor
A
These sre eroors that occur only during the execution of a program. Errors include running out of memory