From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,71c35a0e73c110d5 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2003-07-31 14:16:32 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!nycmny1-snf1.gtei.net!news.gtei.net!colt.net!diablo.theplanet.net!newspeer1-gui.server.ntli.net!ntli.net!newsfep1-win.server.ntli.net.POSTED!53ab2750!not-for-mail Message-ID: <3F29872F.188CCE5C@devnull.com> From: Chris Quayle Reply-To: lightwork@aerosys.co.uk Organization: V\/\/\/\/\/V X-Mailer: Mozilla 4.75 [en] (X11; U; OSF1 V4.0 alpha) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.sys.dec Subject: Re: Free UNIX for non-commerical use. References: <3F233C74.4F4C3BAB@ntlworld.com> <3f23a698$0$15040$cc9e4d1f@news.dial.pipex.com> <3F251918.B861101C@ntlworld.com> <3F291119.760D27DF@ntlworld.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Inktomi-Trace: pc1-oxfd1-4-cust213.oxfd.cable.ntl.com 1059686191 18487 62.254.131.213 (31 Jul 2003 21:16:31 GMT) Date: Thu, 31 Jul 2003 22:16:31 +0100 NNTP-Posting-Host: 80.1.224.5 X-Complaints-To: abuse@ntlworld.com X-Trace: newsfep1-win.server.ntli.net 1059686191 80.1.224.5 (Thu, 31 Jul 2003 22:16:31 BST) NNTP-Posting-Date: Thu, 31 Jul 2003 22:16:31 BST Xref: archiver1.google.com comp.sys.dec:16526 "Dr. David Kirkby" wrote: > > Peter da Silva wrote: > > > > In article <3F251918.B861101C@ntlworld.com>, > > Dr. David Kirkby wrote: > > > 1) In the case of games manufacturers, they would indeed loose revenue > > > if they allowed everyone to copy their games. I don't think this is so > > > with UNIX operating systems and compilers. There are not than many > > > home users going to pay more than $1000 on a compiler. They will > > > likely use gcc instead and have to accept the poorer performance. > > > > And write software that only compiles on GCC, so that the commercial > > vendors own users end up having to install GCC just to build and run > > open-source software. > > > > GCC is a fine compiler, but it's becoming a monoculture for software > > developers... it's almost like GCC and a collection of related tools > > are turning into a "linux emulator" for UNIX systems. So... where the > > cry used to be "all the world's a VAX", it's now "all the world's Red > > Hat". > > > > I guess that's OK, if you like a monoculture. > > I agree with you entirely there. As far as 90% of open-source > developers are concerned, if it compiles on gcc, it is okay. Few seem > to make any effort to check it with other compilers. > > Like it or not, gcc is now a standard. I don't think its a very good > standard in many ways, but it is no doubt a standard - at least > according to a dictionary definition of a standard > http://www.m-w.com/cgi-bin/dictionary?va=standard > before anyone jumps up and tells me gcc does not conform to this or > that ISO standard. At least one compiler (IBM's for AIX I think), has > switches to enable gcc extensions. > > I think the code that gcc allows to pass without issuing a warning, > needs tightening up. -Wall is next to useless. A lot more could be > done to ensure that code is portable, before the -Wall option gives no > warnings. I think if the compiler warnings issued were much more > comprehensive, then people would tend to remove possible portability > problems, making the code more portable. As it is, people see that > their code compiles okay on gcc with no warnings and think it is good > code. In reality, gcc -Wall is far too lax. (You post has made me > decide to run gccbug and report this as a bug). > I think maybe you are looking at this from the wrong end. If you get yourself into the state of mind where you always write in strict ansi C, without exception, then your code should compile under any compiler that claims to be ansi compatible. That means (for gcc) using the -ansi switch and not using any extensions. If this isn't enough, then you should be using lint, which can find fault with even the most perfect code. Oh yes, and keep it simple and clear as well. It's your duty to the next person to come along to do maintenance :-). I've had far more problems with make incompatabilities, where legal syntax seems to greatly between vendors... Chris