Re: Simplicity has a future



Ian Collins said:
Richard Heathfield wrote:
Which C99 compiler are you using? If the answer is "gcc", why bother to
claim that you have a C99 compiler? (gcc is /not/ a conforming C99
compiler.)

Never use it. I use Sun Studio, which is approaching C99 conformance.

Okay, fine - just as long as you realise that most people /don't/ have a C99
compiler.

The Solaris headers have also migrated to C99.

Maybe if you can explain the usefulness to mankind of the code, I might
give it a go....

Like much code posted here, its usefulness to mankind is that it
illustrates a point about the language. In this case, the point is that
the claim "I can copy-paste your C code and compile it as C++" is
demonstrably false.

Neither of the compliers I have will compile it, gcc or Studio. Studio
barfs over asm.

gcc compiles it just fine here, using:

-W -Wall -ansi -pedantic -Wformat-nonliteral -Wcast-align -Wpointer-arith
-Wbad-function-cast -Wmissing-prototypes -Wstrict-prototypes
-Wmissing-declarations -Winline -Wundef -Wnested-externs -Wcast-qual
-Wshadow -Wconversion -Wwrite-strings -Wno-conversion -ffloat-store -O2

If Studio barfs over asm, it's not a conforming C implementation, C90 /or/
C99. asm is a perfectly normal C identifier in user namespace.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
.



Relevant Pages

  • visual C++ compiler toolkit question
    ... the windows API and C/C++ Runtime which is used by ... Studio is required). ... Compiler Toolkit instead, so they dont need to buy VS.NET if all they want ... 1.Is the Visual C++ Compiler Toolkit compiler the same compiler as Visual ...
    (microsoft.public.vstudio.general)
  • visual C++ compiler toolkit question
    ... the windows API and C/C++ Runtime which is used by ... Studio is required). ... Compiler Toolkit instead, so they dont need to buy VS.NET if all they want ... 1.Is the Visual C++ Compiler Toolkit compiler the same compiler as Visual ...
    (microsoft.public.vstudio.development)
  • Re: Apple should buy SUN.
    ... I too would like to see a fully standards ... >>compliant version of this compiler, ... I'm hoping that it will come with Studio 11 patches. ... > of the sources - not the compiler. ...
    (comp.unix.solaris)
  • Re: Give me reasons not to use Delphi
    ... button to press to file an e-mail bug report to Microsoft The beta versions ... If want to report a compiler generated bug to Microsoft then you can ... To set this compiler option in the Visual Studio development environment ... This compiler option is unavailable in Visual Studio. ...
    (borland.public.delphi.non-technical)