Re: A good compiler
- From: Mark McIntyre <markmcintyre@xxxxxxxxxxx>
- Date: Thu, 26 Jul 2007 23:15:52 +0100
On Thu, 26 Jul 2007 22:59:53 +0530, in comp.lang.c , santosh
<santosh.k83@xxxxxxxxx> wrote:
Kelsey Bjarnason wrote:
Excuse me? A compiler that makes me jump through hoops just to compile
_correct_ code without whining and bitching? It's broken. Badly, badly
broken.
That's just your opinion.
Not /just/ his opinion.
The C Standard explicitly permits implementations
to emit as many diagnostics as they deem fit, over and above what are
required by it.
Sure - but I suspect most people here would agree that any compiler
that emits diagnostics with valid code is screwed up.
Otherwise where do we draw the line ?
warning: "int" - you should use either short or long (or possibly long
long) as the size of an int is platform dependent and your code will
be hosed when you port to a 128-bit platform..
warning: 's' - you do realise this has different sizes in C and C++
warning: 'C' - this is a Fortran comment indicator, your code will
break if you crosscompile with Fortran
warning: "scunthorpe" - this identifier is obscene, reporting you to
the VGTF and Interpol
warning: "tee" - ambiguous identifier: darjeeling or lapsang ?
fatal: "windows" - this word is copyright, deleting your source code
--
Mark McIntyre
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
.
- Follow-Ups:
- Re: A good compiler
- From: Chris Hills
- Re: A good compiler
- From: santosh
- Re: A good compiler
- From: Default User
- Re: A good compiler
- References:
- A good compiler
- From: Ajinkya
- Re: A good compiler
- From: Chris Hills
- Re: A good compiler
- From: Malcolm McLean
- Re: A good compiler
- From: Richard
- Re: A good compiler
- From: Malcolm McLean
- Re: A good compiler
- From: Richard Heathfield
- Re: A good compiler
- From: Mark McIntyre
- Re: A good compiler
- From: Chris Hills
- Re: A good compiler
- From: Kelsey Bjarnason
- Re: A good compiler
- From: santosh
- A good compiler
- Prev by Date: Re: Malcolm's new book
- Next by Date: Re: Signal to noise ratios
- Previous by thread: Re: A good compiler
- Next by thread: Re: A good compiler
- Index(es):
Relevant Pages
|