Re: Testing ham radio software on Sun hardware.
- From: Dave <INVALID-see-signature-for-how-to-determine@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 28 Dec 2005 23:47:45 +0000
Know Code wrote:
Dr. David Kirkby wrote:
By *not* using gcc, but a commercial C and C++ compiler which adheres more strictly to the respective standards,
Dave K G8WRB.
Is that like the way Micro$oft adheres to the W3C standards? Bwahahahah!
Yes, gcc is very much like Micro$oft adhere to W3C standards.
gcc extends the language, has a compiler flag (-pedantic) which is supposed to warn you if you use such extensions, but the documentation admit it does not do this fully and that they have no plans to do anything about it.
I find this annoying. It sometimes means code built with gcc will not compile on better compilers. Usually the changes are necessary are minor.
To be more specific, taking information *only* from the gcc homepage:
lists the extensions to the C programming language.
"GNU C provides several language features not found in ISO standard C. (The -pedantic option directs GCC to print a warning message if any of these features is used.)"
Then we read here:
"Some users try to use -pedantic to check programs for strict ISO C conformance. They soon find that it does not do quite what they want: it finds some non-ISO practices, but not all—only those for which ISO C requires a diagnostic, and some others for which diagnostics have been added.
A feature to report any failure to conform to ISO C might be useful in some instances, but would require considerable additional work and would be quite different from -pedantic. We don't have plans to support such a feature in the near future."
Hence my suggestion that people test their code on other compilers.
The other issue is that people often write code that works on Linux, but makes use of Linux specific header files. On many occasions, this is unnecessary.
Hence the offer. If anyone has some open-source UNIX or Linux code they would like to test on a Sun, using a commercially produced C compiler, let me know.
BTW, you can install Solaris x86 on your own PC. It is a free download
although it tends to be more fussy about what hardware it supports than Linux. The Sun compiler
which used to sell for a few thousand dollars was very recently made free too. (That will incidently run on Linux x86 too).
I run Solaris on a 64-bit SPARC, not on a PC, so the word size is different to most PCs and the byte ordering is different too.
PS, I am not employed by Sun and have no financial interests in the company. I just rather like their hardware.
-- Dave K G8WRB
Please note my email address changes periodically to avoid spam. It is always of the form: month-year@domain. Hitting reply will work for a couple of months only. Later set it manually. The month is always written in 3 letters (e.g. Jan, not January etc) .
- Prev by Date: Re: Licence Classes FAQ
- Next by Date: Re: Licence Classes FAQ
- Previous by thread: Re: Testing ham radio software on Sun hardware.
- Next by thread: Iraqi militant groups - about as clever as G3's!