[Ilugc] [TIP] some C
- From: knura9@xxxxxxxxx (Arun Khan)
- Date: Thu, 22 Dec 2011 15:33:03 +0530
On Thu, Dec 22, 2011 at 10:52 AM, Sree <sreenidimn at gmail.com> wrote:
Hi,
$ gcc i.c
will get you the result.
Just adding to that, I've found that -Wall switch is very useful for
finding silly errors that might creep in, so it makes sense to compile
every C program with that switch on. And -g is useful if the compiled
executable is to be debugged at a later stage.
Both these switches are applicable to g++ too, and has the same meaning.
On a related tool, way back in my days as a developer, we used lint
(to remove all warnings and errors) before submitting our code to the
build queue (vt100 terminals connecting to the main frame over 1200
bps dial up lines)
A search for the same coughed up 'splint' [1] which looks very promising.
[1]
http://www.splint.org/
-- Arun Khan
Other related posts: