<div dir="ltr"><div class="gmail_default" style="font-family:times new roman,serif;font-size:small">Steve,<br><br></div><div class="gmail_default" style="font-family:times new roman,serif;font-size:small">Different compilers are written in different ways, but in general you are right. Compared to the lexical analysis, syntactical analysis and optimization stages (ESPECIALLY OPTIMIZATION) the tokenization stage (which includes removing comments) is a blip in the timeline of compilation.<br><br></div><div class="gmail_default" style="font-family:times new roman,serif;font-size:small">I will say that comments DID have a real impact when compilers were reading in source code on paper tape on an ASR-33 Teletype, but that was the last time I even considered the issue oft compilation time being slowed down by comments.<br><br></div><div class="gmail_default" style="font-family:times new roman,serif;font-size:small">md<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 15, 2023 at 10:08 PM Steve Litt via Ale <<a href="mailto:ale@ale.org">ale@ale.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Jon "maddog" Hall via Ale said on Wed, 15 Nov 2023 19:28:38 -0500<br>
<br>
>The other thing that surprised me was the passage that said "Comments<br>
>just slow down the compilation".<br>
><br>
>Paaaaleese! Even the heaviest commented source code on a compiled<br>
>program would be a breeze for the compiler to handle. This excuse is<br>
>fake news.<br>
<br>
Maddog, is the first step, before lexical analysis, replacing all space<br>
characters and newlines with tokens so the lexical analyzer sees the<br>
program as a single string?<br>
<br>
If that's the case, I can see where // to the next linefeed and /* to<br>
the next */ would be very fast.<br>
<br>
Thanks,<br>
<br>
SteveT<br>
<br>
Steve Litt <br>
<br>
Autumn 2023 featured book: Rapid Learning for the 21st Century<br>
<a href="http://www.troubleshooters.com/rl21" rel="noreferrer" target="_blank">http://www.troubleshooters.com/rl21</a><br>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org" target="_blank">Ale@ale.org</a><br>
<a href="https://mail.ale.org/mailman/listinfo/ale" rel="noreferrer" target="_blank">https://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
</blockquote></div>