Top Banner
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
9

Translating Coded Programs into Executable Code

Jan 12, 2016

Download

Documents

M.A.C.

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
Welcome message from author
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
Page 1: Translating Coded Programs into Executable Code

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

Page 2: Translating Coded Programs into Executable Code

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.

Page 3: Translating Coded Programs into Executable Code

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

Page 4: Translating Coded Programs into Executable Code

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.

Page 5: Translating Coded Programs into Executable Code

Logic errors (execution-time errors): writing an incorrect formula, or wrongly defined the problem.

Page 6: Translating Coded Programs into Executable Code

Temporary dummy print statements : print statements temporarily inserted into the code to help locate the error.

Page 7: Translating Coded Programs into Executable Code

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.

Page 8: Translating Coded Programs into Executable Code

CIS 10

Conclusi

on

Page 9: Translating Coded Programs into Executable Code