Application Generation Flashcards
Be able to justify suitable applications for a specific purpose Utilities Open source vs Closed source Translators: interpreters, compilers and assemblers Stages of compilation Linkers and loaders and use of libraries
Define open source software
Software for which the original source code is made freely available and may be redistributed and modified
Define closed source software
Type of software for which the code is not shared with the public for anyone to look at or make changes to
What is source code?
Original code types in by the programmer in the native language
What is a translator?
A program that translates a program in assembly language into machine code
What is an interpreter?
A program that translates and executes a program one statement at a time
What is a compiler?
A program that translates a high-level language program, source code, into a computer’s machine code
What is compilation?
The translation process that produces an equivalent program in a low-level language
Describe the process of compilation
Involves analysing the language structure of the source program, determines if its valid, and proceeding suitable machine code
What is lexical analysis?
The stage in compilation of a program that puts each statement into the form best suited to the syntax analyser
Describe what happens in lexical analysis
The standard components of each statement (e.g.PRINT) are replaced by their tokens
Programmer defined names are entered into a symbol table
Unnecessary characters like spaces, tabs and coder comments are removed
What is syntax analysis?
The stage in compilation where language statements are checked against the rules of the language
Errors are reported if a statement is not valid
What is code generation?
The stage in compilation that produces a machine-code program that is equivalent to the source program
What is optimisation?