Sign in to follow this  
Shannon Barber

More pedantic C++

Recommended Posts

Raduprv    997
The preprocessor is part of the compiler (at least part of the most compilers).
If not, the compiler will be called a compiler, the preprocessor would be called a preprocessor, and the executable would be called make :D

Share this post


Link to post
Share on other sites
Andrew Russell    1394
You know, if you wern't the great MKH, I'd be wondering why you were asking such silly questions [wink].

In any case, the preprocessor (in general, lingusticly and actually) would be considered a part of the compiler.

Without context, the question is difficult to answer. In a conversation I would be asking for more clarification and/or giving more general and detailed answers.

Alternativly: "It depends. What is being preprocessed?"

Share this post


Link to post
Share on other sites
Nemesis2k2    1045
Conceptually, I'd say the preprocessor is seperate from the compiler. In reality, it makes sence for the two to be part of the one executable. We call that executable the compiler because the preprocessor is by far the lesser part of it, both in terms of importance and volume.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
Quote:
Original post by Magmai Kai Holmlor
Is the preprocessor part of the compiler?
If not, what is the 'compiler executable' suppose to be called since everyone calls it the compiler?


In actual implementations, I believe the preprocessor is usually part of the compiler executable. In the C standard (and I believe in the C++ standard) the "preprocessor stage" is distinct from the "compilation stage". I think the standard does not have a name for the compiler executable, but would call the compiler executable and associated files, and the OS, etc. "the implementation".

I think it's best to just use the colloquial "compiler" for the compiler executable since that's what it's usually called and is usually the proper term in other languages (which don't usually define so many compilation stages).

Share this post


Link to post
Share on other sites
Shannon Barber    1681
Thanks guys, again I'll be reworking that question.
The question asked what the compiler was responsible for, but the intent was what's the compiler responsible for as opposed to the preprocessor even though it didn't say that in the question. So when 'expand macros' was listed, it wasn't perfectly clear to me if the answer should be yes or no.

(I'm reviewing the TeckCheck C++ test questions..... Muauhahahaha, you're all doomed! Seriously, I'm focusing on making them less ambiguous, double checking all the answers are correct, and checking the statistics to ensure they are effective questions.)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this