tags:

views:

79

answers:

3

I am confused by these two terms. Are they the same?

+3  A: 

I think you mean "Compiler" when you say "Translator." They are not the same. Preprocessing is a phase of compilation.

See the Wikipedia article.

Matthew Jones
+1: but i've seen some people use translator for beautifier.
LB
A: 

The preprocessor is actually run before the compiler and handles special directives like macros.

Guido
A: 

A preprocessor converts a stream of text tokens into a different stream of tokens.
A compiler converts a stream of tokens into executable code.

Loadmaster