90 likes | 232 Views
Translating Coded Programs into Executable Code. Disadvantage: - Work less efficiently than compilers and interpreted programs run more slowly because translate each program statement into machine language just before executing and must repeat each statement many times
E N D
Translating Coded Programs into Executable Code • Disadvantage: -Work less efficiently than compilers and interpreted programs run more slowly because translate each program statement into machine language just before executing and must repeat each statement many times • Some programming language include both an interpreter and a compiler which are free- errors program and saving the object module to avoid repeating process
Translating Coded Programs into Executable Code 3.Assemblers: -Converts assembly language statements into machine language. -Works like a compiler, producing a stored object module. -Assembly language is used almost exclusively by professional programmers to writ efficient code for specific type of computer.
Documentation • Documented Source Code: The source code should implement the Logic illustrated by the program Design specification including comments to make it understandable and easy to update
PRELIMINARY DEBUGGING PRINT as PRNT or putting a required comma or semicolonin the wrong place. The debugging process. Errors are typically classified as syntax errors or logic errors. Examples: Syntax errors: misspelling
Logic errors (execution-time errors): writing an incorrect formula, or wrongly defined the problem.
Temporary dummy print statements : print statements temporarily inserted into the code to help locate the error.
Most compilers today include built-in debugging tools. • Color-code comments, command statements, and variables to assist readability. • Allow the programmer to choose between line-by-line execution and full-speed execution, among other features. This “execute, check, and correct” process is repeated until the program is free of bugs.
CIS 10 Conclusion