Re: A good compiler please....



Tor Rustad <tor_rustad@xxxxxxxxxxx> writes:

On 31 Mai, 11:36, Nikhil Bokare <nbok...@xxxxxxxxx> wrote:
Can anyone suggest me a good, small, easy to use compiler which
follows ANSI C standards?

I use TurboC for the sole reason that I am quite used to it. It does
not follow some of the ANSI C standards.

Turbo C was one of my first compilers too, and I did pick up some bad
habbits from it. I haven't used it for a very long time, but you could
check if you invoke it in ANSI mode or not.

A good C compiler is gcc, and if you start using lint too, you 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.

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



Relevant Pages

  • de.comp.lang.c FAQ (Teil 3 von 5)
    ... 1983 rief das American National Standards Institute ein ... standardisieren. ... Komitees am 14. Dezember 1989 schliesslich als ANSI Standard ... Abschnitt 6: Der C Präprozessor ...
    (de.comp.lang.c)
  • de.comp.lang.c FAQ (Teil 3 von 5)
    ... 1983 rief das American National Standards Institute ein ... standardisieren. ... Komitees am 14. Dezember 1989 schliesslich als ANSI Standard ... Abschnitt 6: Der C Präprozessor ...
    (de.comp.lang.c)
  • de.comp.lang.c FAQ (Teil 3 von 5)
    ... 1983 rief das American National Standards Institute ein ... standardisieren. ... Komitees am 14. Dezember 1989 schliesslich als ANSI Standard ... Abschnitt 6: Der C Präprozessor ...
    (de.comp.lang.c)
  • de.comp.lang.c FAQ (Teil 3 von 5)
    ... 1983 rief das American National Standards Institute ein ... standardisieren. ... Komitees am 14. Dezember 1989 schliesslich als ANSI Standard ... Abschnitt 6: Der C Präprozessor ...
    (de.comp.lang.c)
  • de.comp.lang.c FAQ (Teil 3 von 5)
    ... 1983 rief das American National Standards Institute ein ... standardisieren. ... Komitees am 14. Dezember 1989 schliesslich als ANSI Standard ... Abschnitt 6: Der C Präprozessor ...
    (de.comp.lang.c)