c - Does Comments/Identifiers can impact on code performance/operability? -


today presented wiered fact (or not)

it said:
"at disallowed write long, descriptive identifier names, , forbidden write comments linux drivers written in ansi c."

when asked "wtf? why?" told caused performence issues , errors of such...
not many details there.

i supprised, have ask...
can real?
knowing comments stripped compilation pre-processor,
, identifiers either way converted adresses.

so... can cause problems ?

well, ansi c standard, , standard must follow (i mean compiler designers , programmers, if decide support it).

ansi c standard states exported identifiers (yeah, exported identifiers stored symbols in symbols table is, not addresses) must not longer 6 characters, , non-exported identifiers ok not longer 31 character.

on commenting. except obvious pitfalls accidental code swallowing multi-line commenting, recommend read coding style article kernel developers explains kind of comments not encouraged.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -