Re: A good compiler please....



On 31 Mai, 15:28, Richard <rgr...@xxxxxxxxx> wrote:
Tor Rustad <tor_rus...@xxxxxxxxxxx> writes:

<snip>

A good C compiler is gcc, and if you start using lint too, you get
a lot of warnings.

I dont know why but in Linux land "lint" seems to have all but
vanished. There is lclint but this is not in the standard Debian/Ubuntu
repositories.

The Gcc options -Wall and -pedantic can help a lot.

and -ansi

Although off topic, I would be interested to hear what other C
programmers here use for "lint"'like examination of theirs and others
code.

I use splint myself, which available both on Win32 and Linux.

http://www.splint.org/

on Ubuntu just type

sudo apt-get install splint

--
Tor

.