How to clean C source code (fast)

The old tricks for cleaning your C code of most of its unwanted ugliness:

  • Run PC-Lint on the code.
  • Run LCLint on the code.
  • Run CL /W4 /Za /Ox on the code (with your usal compiler, optimization finds many bugs not found without)
  • Run GCC -O3 -Wall -ansi -pedantic on the code.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.