Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

How much do comments slow down the compiler?

Name: Anonymous 2015-02-21 7:26

Is it really worth it to force the compiler to have to sort out which statements to skip and which to attend to? Seems like a non-zero slice of time is being wasted by the lexer just to make shit easier for the programmer.

Name: Anonymous 2015-02-21 13:22

>>13
C standard

Nobody cares about your primitive caveman bytefuck languages where you can't even use things before defining them.

Besides, you haven't even read what is linked in >>8, otherwise you would have concurred that I'm right:

Tokenization

In the third phase of translation, the preprocessor tokenizes the source file into preprocessing tokens and sequences of whitespace characters. Comments are placed by a single whitespace character

Tokenization is another word for lexing (do I need to explain that more or can you follow at least this far?). Thus, comments are stripped out only at the lexing phase. Which is a part of compilation (because without lexing there would be no parsing and thus the compiler wouldn't "see" any actual code - do I need to explain that more, or is your pea-brain powerful enough to understand English?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List