> Perhaps there's a reason, due to some standard or other that,
> it's not done in the compiler.
I imagine its due in some part the the unix philosophy: (paraphrased)
'do one job (and one job only) and do it well' . Compiling code is a
job for a compiler, and a compiler, therefore, only compiles code.
Static analysis, apart from that which is necessary as part of a
compiler's job, is not done by a compiler, but rather by a static
analyser. In the same vein, a static analyser doesnt compile code.
That said, I also wish my compiler would do static analysis for me.
Paul
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!