c# - Does out commented code consume memory -


i have question out commented code , couldn't find answer.

does compiler read out commented code, or skip code?

it depends on language.. in c++, example, comments processed , discarded preprocessor, , compiler not see them.

in general, comments not "consume memory" in target executable. lexers may or may not discard them right away, not enter parsing phase of compiler, not go later phases of compilation.

edit: have seen c# , visual-studio tags late...

  • csc: iirc sscli source, comments skipped directly lexer
  • visual studio (intellisense) not skip them immediately: needs process comments coloring, regions, etc..

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -