BookRags.com Literature Guides Literature
Guides
Criticism & Essays Criticism &
Essays
Questions & Answers Questions &
Answers
Lesson Plans Lesson
Plans
My Bibliography Periodic Table U.S. Presidents Shakespeare Sonnet Shake-Up
Research Anything:        
History | Encyclopedias | Films | News | Create a Bibliography | More... Login | Register | Help

Search "Preprocessor"

Contents Navigation
Not What You Meant?  There are 39 definitions for I.

Preprocessor

Print-Friendly  Order the PDF version  Order the RTF version
About 1 pages (207 words)
Preprocessor Summary

Bookmark and Share Questions on this topic? Just ask!

Preprocessor

A preprocessor is a program that transforms data or a computer language into suitable input for another program or a compiler. A preprocessor performs preliminary operations on data, such as organization, formatting, and computation, before that data is passed on for further processing. For example, in the C programming language the line #define PI 3.14159 instructs the preprocessor to replace every occurrence of PI with the numerical value 3.14159. In the case of a computer program, a preprocessor may be used to transform a program into a simpler or less complete computer language, for example, transforming C++ into C. This processing operation can detect and correct problems in code before the compiler can reject them.

Preprocessor operations can be similar to macro expansions.

Macro expansion replaces an instruction with a sequence of instructions prior to assembly or compiling. However, preprocessors differ from compilers. A compiler translates a high-level language into assembly or machine language. A preprocessor does not translate code into machine language, but transforms into suitable language for the compiler.

Preprocessing may require data or computer programs to be translated twice. The source data or program is inputted into the preprocessor. The preprocessor then passes the modified code to the compiler, which then translates it into machine code.

This is the complete article, containing 207 words (approx. 1 page at 300 words per page).

More Information
  • View Preprocessor Study Pack
  • 39 Alternative Definitions
  • Search Results for "Preprocessor"
  • Add This to Your Bibliography
  • More Products on This Subject
    Preprocessor
    In computer science, a preprocessor is a program that processes its input data to produce output tha... more


     
    Ask any question on Preprocessor and get it answered FAST!
    Answer questions in BookRags Q&A and earn points toward
    discounted or even FREE Study Guides and other BookRags products!
    Learn more about BookRags Q&A
    Copyrights
    Preprocessor from World of Computer Science. ©2005-2006 Thomson Gale, a part of the Thomson Corporation. All rights reserved.

    Join BookRagslearn moreJoin BookRags




    About BookRags | Customer Service | Report an Error | Terms of Use | Privacy Policy