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. 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 - PowerPoint PPT Presentation
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
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 The debugging process.
Errors are typically classified as syntax errors or logic errors. Examples: Syntax errors: misspellingPRINT as PRNT or putting a required comma or semicolonin the wrong place.
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.