FACTOID # 52: In Botswana, more than one in three adults aged 15-49 are infected with HIV/AIDS.
 
 Home   Encyclopedia   Statistics   Countries A-Z   Flags   Maps   Education   Forum   FAQ   About 
 
WHAT'S NEW
RECENT ARTICLES
More Recent Articles »
 

FACTS & STATISTICS    Simple view

  1. Select countries to view: (hold down Control key and click to select several)

     

     

    Compare:

     

     

  1. Select fact or statistic: (* = graphable)

     

     

     

  2. (OPTIONAL) Compare to statistic: (both need to be graphable)

     

     

     

  3. View result as:

     

       
(OR) SEARCH ALL encyclopedia, stats & forums:   

Encyclopedia > Preprocessing

Preprocessing is the act of processing data before it is parsed. There are numerous situations where it makes sense to do the parsing in several stages. One is where humans are the parsers, and another is in the context of computer programming.


As the name suggests, preprocessing is performed by a preprocessor. The preprocessor modifies the data according to preprocessing directives that are usually placed in the input data itself. For instance, in the C programming language, where preprocessing directives are marked with a '#' at the beginning of the line, the preprocessor can implement macros, be used for including external files at different points in the file or to select blocks of code are to be sent to the compiler. The criterias can be several things, such as processor type (e.g. to resolve integer representation problems), availability of function calls (so you can provide an work-around if one is missing) and user preferences.


When preprocessors support macros, calls to macro functions within the code will expand to the whole implementation of the macro before it is sent to the compiler. This can be quite useful where speed is more important than the size of the binary code, and when you need expressions that expand to more than just a function; for instance a case-block.


Preprocessing is very useful to solve portability issues: depending on the target platform (that is specified to the preprocessor by some command-line argument) the application will contain specific code. For instance, when compiled for Linux, the application would read its configuation options from a file named .conf, whereas when compiled for Microsoft Windows, it would read the configuration from the registry.


See also

C preprocessor


  Results from FactBites:
 
Preprocessing - Wikipedia, the free encyclopedia (301 words)
Preprocessing is the act of processing data before it is parsed.
For instance, in the C programming language, where preprocessing directives are marked with a '#' at the beginning of the line, the preprocessor can implement macros, be used for including external files at different points in the file or to select blocks of code are to be sent to the compiler.
Preprocessing is very useful to solve portability issues: depending on the target platform (that is specified to the preprocessor by some command-line argument) the application will contain specific code.
  More results at FactBites »


 

COMMENTARY     


Share your thoughts, questions and commentary here
Your name
Your comments
Please enter the 5-letter protection code

Want to know more?
Search encyclopedia, statistics and forums:

 


Lesson Plans | Student Area | Student FAQ | Reviews | Press Releases |  Feeds | Contact
The Wikipedia article included on this page is licensed under the GFDL.
Images may be subject to relevant owners' copyright.
All other elements are (c) copyright NationMaster.com 2003-5. All Rights Reserved.
Usage implies agreement with terms.