Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C > Re: [OT] lcc fi...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 88 of 99 Topic 26092 of 26977
Post > Topic >>

Re: [OT] lcc first experience

by Keith Thompson <kst-u@[EMAIL PROTECTED] > May 9, 2008 at 01:03 PM

jacob navia <jacob@[EMAIL PROTECTED]
> writes:
> Richard Heathfield wrote:
>> Harald van D?k said:
>>> On Thu, 08 May 2008 13:45:24 -0400, CBFalconer wrote:
>>>> If you ever actually try "-W -Wall -ansi -pedantic" on gcc, you will
>>>> discover that (barring possible errors) it doesn't
embrace-and-extend.
>>> This translation unit is accepted without any diagnostic by gcc -W
-Wall
>>> - ansi -pedantic:
>>>
>>> int __attribute__((const)) zero(void) { return 0; }
>>>
>>> Does that mean the code is valid C, that this is an error in GCC, or
that
>>> GCC does embrace-and-extend?
>>
>> Implementations are permitted to provide extensions that do not
>> affect the behaviour of a strictly conforming program. The above
>> code is not strictly conforming.
>
> Of course if implementations are called "lcc-win" you will start ranting
> with no end.
>
> It took me an enormous effort to implement my extensions without adding
> any new keywords, making them 100% compatible with the C standard.
>
> I was  always told that "I am forced to emit a diagnostic at non
> conforming code", that I am non standard etc etc. But obviously for
> gcc you use other criteria!
>
> gcc can do whatever it wants because it is GNU and linux, and that is
> good.
>
> lcc-win is windows and non GNU hence it is bad.
>
> Period.

To the best of my recollection, neither gcc nor lcc-win has been
flamed for providing extensions that do not affect the behavior of
strictly conforming programs such as gcc's __attribute__ or lcc-win's
operator overloading.  (I'm assuming that lcc-win's operator
overloading doesn't break strictly conforming code.)

The standard does not require a diagnostic for the use of
__attribute__, therefore we have no problem with the lack of a
diagnostic.  (IMHO it would be nice if gcc had a "really pedantic"
mode in which it does diagnose such things, but I'm not going to
insist on it.)

If a gcc developer repeatedly advocated the use of
__attribute__((const)) in comp.lang.c, that developer would
undoubtedly be flamed for it, and asked to take his advocacy
elsewhere.

lcc-win does not conform to C90, and does not claim to do so.  That's
not a problem.  When the existence of the undo***ented "-ansic89"
option recently came to light, and it was found that it did not cause
lcc-win to conform to C89/C90 requirements, a lengthy discussion
ensued -- one that could have been cut short if you had simply
mentioned that "-ansic89" is not intended to implement C89/C90
conformance.

lcc-win declares several non-standard identifiers in its standard
headers ("wtof" was the most recent example).  This breaks strictly
conforming programs.  I consider these to be minor bugs, easy to fix
-- and, given the knowledge of the standard that I would expect from a
compiler developer, trivially easy to avoid in the first place.  You
have been mildly criticized for these bugs; you have been flamed for
reacting to bug re****ts as if they were vicious personal attacks.  If
your response had been something like "Thanks for pointing that out;
I'll fix it in the next release", or even "... I'll fix it when I get
around to it", there would have been no real problem, at least as far
as I'm concerned.

You have been one of the most vociferous advocates of adopting the C99
standard and discarding the (officially obsolete) C90 standard, in
spite of the fact that the C99 standard is not yet sufficiently widely
implemented to make C99 code ****table.  This is an odd attitude in
view of the fact that your own lcc-win's C99 conformance is flawed,
not just by bugs but by missing features.

Yes, you and your compiler have been criticized here in ways that gcc
and its developers have not.  Part of this may be due to a general
pro-gcc bias, but I believe the majority of the criticisms have been
of things that *don't apply* to gcc.

-- 
Keith Thompson (The_Other_Keith) <kst-u@[EMAIL PROTECTED]
>
Nokia
"We must do something.  This is something.  Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"
 




 99 Posts in Topic:
[OT] lcc first experience
Morris Dovey <mrdovey@  2008-05-06 12:33:06 
Re: lcc first experience
=?ISO-8859-1?Q?Tom=E1s_=D  2008-05-06 10:41:28 
Re: lcc first experience
Morris Dovey <mrdovey@  2008-05-06 13:02:55 
Re: lcc first experience
Johannes Bauer <dfnson  2008-05-06 20:51:07 
Re: lcc first experience
=?ISO-8859-1?Q?Tom=E1s_=D  2008-05-06 15:35:32 
Re: lcc first experience
Antoninus Twink <nospa  2008-05-06 20:10:35 
Re: lcc first experience
Morris Dovey <mrdovey@  2008-05-06 13:21:40 
Re: [OT] lcc first experience
Keith Thompson <kst-u@  2008-05-06 11:19:10 
Re: lcc first experience
=?ISO-8859-1?Q?Tom=E1s_=D  2008-05-06 11:47:38 
Re: [OT] lcc first experience
Morris Dovey <mrdovey@  2008-05-06 13:49:09 
Re: lcc first experience
Paul Hsieh <websnarf@[  2008-05-07 10:52:56 
Re: lcc first experience
Eric Sosman <Eric.Sosm  2008-05-07 13:58:53 
Re: lcc first experience
dj3vande@[EMAIL PROTECTED  2008-05-07 18:41:15 
Re: lcc first experience
Spiros Bousbouras <spi  2008-05-08 11:20:03 
Re: lcc first experience
muntyan@[EMAIL PROTECTED]  2008-05-08 12:49:22 
Re: lcc first experience
roberson@[EMAIL PROTECTED  2008-05-08 20:11:47 
Re: lcc first experience
muntyan@[EMAIL PROTECTED]  2008-05-08 19:31:19 
Re: lcc first experience
Richard Heathfield <rj  2008-05-09 05:25:35 
Re: lcc first experience
jacob navia <jacob@[EM  2008-05-09 08:44:45 
Re: lcc first experience
Richard Heathfield <rj  2008-05-09 07:35:23 
Re: lcc first experience
roberson@[EMAIL PROTECTED  2008-05-09 14:59:38 
Re: lcc first experience
Nick Keighley <nick_ke  2008-05-09 01:48:41 
Re: lcc first experience
Spiros Bousbouras <spi  2008-05-08 16:17:14 
Re: lcc first experience
richard@[EMAIL PROTECTED]  2008-05-08 23:45:58 
Re: lcc first experience
Nick Keighley <nick_ke  2008-05-09 01:50:59 
Re: lcc first experience
richard@[EMAIL PROTECTED]  2008-05-09 12:00:03 
Re: lcc first experience
CBFalconer <cbfalconer  2008-05-07 17:48:52 
Re: lcc first experience
cri@[EMAIL PROTECTED] (R  2008-05-08 02:30:57 
Re: lcc first experience
CBFalconer <cbfalconer  2008-05-08 13:40:41 
Re: lcc first experience
cri@[EMAIL PROTECTED] (R  2008-05-10 04:39:47 
Re: lcc first experience
Paul Hsieh <websnarf@[  2008-05-08 09:55:08 
Re: lcc first experience
roberson@[EMAIL PROTECTED  2008-05-08 17:37:05 
Re: lcc first experience
jacob navia <jacob@[EM  2008-05-08 19:42:31 
Re: lcc first experience
roberson@[EMAIL PROTECTED  2008-05-08 18:28:31 
Re: lcc first experience
Keith Thompson <kst-u@  2008-05-08 11:55:57 
Re: lcc first experience
muntyan@[EMAIL PROTECTED]  2008-05-08 15:13:58 
Re: lcc first experience
roberson@[EMAIL PROTECTED  2008-05-09 02:07:23 
Re: lcc first experience
Paul Hsieh <websnarf@[  2008-05-08 13:24:45 
Re: lcc first experience
Eric Sosman <Eric.Sosm  2008-05-08 17:20:45 
Re: lcc first experience
jacob navia <jacob@[EM  2008-05-09 07:43:41 
Re: lcc first experience
Richard Heathfield <rj  2008-05-09 05:54:58 
Re: lcc first experience
roberson@[EMAIL PROTECTED  2008-05-09 03:31:44 
Re: lcc first experience
richard@[EMAIL PROTECTED]  2008-05-08 21:02:02 
Re: lcc first experience
richard@[EMAIL PROTECTED]  2008-05-08 21:08:29 
Re: lcc first experience
Keith Thompson <kst-u@  2008-05-08 15:15:32 
Re: lcc first experience
CBFalconer <cbfalconer  2008-05-08 19:04:25 
Re: lcc first experience
Keith Thompson <kst-u@  2008-05-08 22:40:25 
Re: lcc first experience
vippstar@[EMAIL PROTECTED  2008-05-08 14:44:50 
Re: lcc first experience
Spiros Bousbouras <spi  2008-05-08 16:09:33 
Re: lcc first experience
Eric Sosman <esosman@[  2008-05-08 21:14:14 
Re: lcc first experience
Nick Keighley <nick_ke  2008-05-09 01:19:55 
Re: [OT] lcc first experience
jacob navia <jacob@[EM  2008-05-06 20:26:59 
Re: [OT] lcc first experience
"Malcolm McLean"  2008-05-06 21:48:31 
Re: [OT] lcc first experience
nembo kid <user@[EMAIL  2008-05-07 17:51:45 
Re: [OT] lcc first experience
roberson@[EMAIL PROTECTED  2008-05-07 16:03:30 
Re: lcc first experience
vippstar@[EMAIL PROTECTED  2008-05-07 09:24:27 
Re: [OT] lcc first experience
Morris Dovey <mrdovey@  2008-05-07 12:06:24 
Re: [OT] lcc first experience
Joe Wright <joewwright  2008-05-07 16:28:29 
Re: lcc first experience
Bart <bc@[EMAIL PROTEC  2008-05-07 13:59:16 
Re: lcc first experience
jacob navia <jacob@[EM  2008-05-08 00:55:56 
Re: lcc first experience
Eric Sosman <esosman@[  2008-05-07 20:32:37 
Re: lcc first experience
Keith Thompson <kst-u@  2008-05-07 18:26:14 
binary literals (was Re: lcc first experience)
Chris Torek <nospam@[E  2008-05-08 02:18:14 
Re: lcc first experience
"Dik T. Winter"  2008-05-08 10:12:38 
Re: lcc first experience
richard@[EMAIL PROTECTED]  2008-05-08 10:36:25 
Re: lcc first experience
CBFalconer <cbfalconer  2008-05-07 20:26:31 
Re: binary literals (was Re: lcc first experience)
Ben Bacarisse <ben.use  2008-05-08 12:14:32 
Re: [OT] lcc first experience
rlb@[EMAIL PROTECTED] (R  2008-05-08 06:29:24 
Re: [OT] lcc first experience
CBFalconer <cbfalconer  2008-05-08 13:45:24 
Re: [OT] lcc first experience
rlb@[EMAIL PROTECTED] (R  2008-05-16 10:37:27 
Re: lcc first experience
Spiros Bousbouras <spi  2008-05-09 11:42:36 
Re: lcc first experience
Spiros Bousbouras <spi  2008-05-09 11:53:06 
Re: lcc first experience
Old Wolf <oldwolf@[EMA  2008-05-11 16:03:04 
Re: lcc first experience
Antoninus Twink <nospa  2008-05-09 11:42:57 
Re: [OT] lcc first experience
Harald van =?UTF-8?b?RMSz  2008-05-09 18:34:51 
Re: [OT] lcc first experience
jacob navia <jacob@[EM  2008-05-09 19:23:54 
Re: [OT] lcc first experience
Morris Dovey <mrdovey@  2008-05-09 12:29:04 
Re: [OT] lcc first experience
jacob navia <jacob@[EM  2008-05-09 20:03:18 
Re: [OT] lcc first experience
Morris Dovey <mrdovey@  2008-05-09 13:58:26 
Re: [OT] lcc first experience
rlb@[EMAIL PROTECTED] (R  2008-05-16 10:38:37 
Re: [OT] lcc first experience
Eric Sosman <esosman@[  2008-05-09 13:39:04 
Re: [OT] lcc first experience
jacob navia <jacob@[EM  2008-05-09 19:59:38 
Re: [OT] lcc first experience
Eric Sosman <esosman@[  2008-05-09 17:10:52 
Re: [OT] lcc first experience
Eric Sosman <esosman@[  2008-05-10 17:04:50 
Re: [OT] lcc first experience
Richard Heathfield <rj  2008-05-09 17:51:42 
Re: [OT] lcc first experience
jacob navia <jacob@[EM  2008-05-09 19:56:19 
Re: [OT] lcc first experience
Flash Gordon <spam@[EM  2008-05-09 19:33:22 
Re: [OT] lcc first experience
Keith Thompson <kst-u@  2008-05-09 13:03:38 
Re: [OT] lcc first experience
Flash Gordon <spam@[EM  2008-05-09 18:27:59 
Re: [OT] lcc first experience
Harald van =?UTF-8?b?RMSz  2008-05-09 20:25:29 
Re: lcc first experience
Harald van =?UTF-8?b?RMSz  2008-05-09 20:52:51 
Re: lcc first experience
Antoninus Twink <nospa  2008-05-09 20:55:58 
Re: lcc first experience
"Malcolm McLean"  2008-05-11 10:09:21 
Re: lcc first experience
Harald van =?UTF-8?b?RMSz  2008-05-09 21:06:34 
Re: [OT] lcc first experience
CBFalconer <cbfalconer  2008-05-09 16:53:05 
Re: [OT] lcc first experience
Antoninus Twink <nospa  2008-05-09 23:41:13 
Re: [OT] lcc first experience
Harald van =?UTF-8?b?RMSz  2008-05-09 23:50:09 
Re: [OT] lcc first experience
Ben Bacarisse <ben.use  2008-05-10 03:28:11 
Re: [OT] lcc first experience
Antoninus Twink <nospa  2008-05-10 23:32:59 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 3:53:50 CDT 2008.