Re: So what Standard are we working off?



Joe Wright <joewwright@xxxxxxxxxxx> writes:

Is there a case where a correct C90 program cannot be successfully
compiled by a C99 compiler? Actually this is not a compiler question but
a language one. Is there anything in C90 that C99 must reject or handle
differently?

Yes. Consider the new "inline" and "restrict" keywords, the
dropping of implicit int, and the disallowing of implicit
function declarations.
--
char a[]="\n .CJacehknorstu";int putchar(int);int main(void){unsigned long b[]
={0x67dffdff,0x9aa9aa6a,0xa77ffda9,0x7da6aa6a,0xa67f6aaa,0xaa9aa9f6,0x11f6},*p
=b,i=24;for(;p+=!*p;*p/=4)switch(0[p]&3)case 0:{return 0;for(p--;i--;i--)case+
2:{i++;if(i)break;else default:continue;if(0)case 1:putchar(a[i&15]);break;}}}
.



Relevant Pages

  • Re: problem with free.
    ... > int main ... You mix statements and declarations in your main program. ... using a C99 compiler, but it's more likely you're using a C++ compiler ...
    (comp.lang.c)
  • Re: Seg faults in merge and quick sort
    ... -The number of elements in an array definition ... unless using a C99 compiler. ... some nonstandard feature of your compiler. ... with type 'size_t', not 'int'. ...
    (comp.lang.c)
  • Compiling with another compiler than gcc.
    ... I have setup a mailing list about pcc, ... After having that project on the shelf for a year or so, I decided to make the compiler ... It is also quite simple to port, writing the basics for i386 took three hours ... I have added most of the C99 stuff (it is supposed to be a c99 compiler) but some stuff ...
    (freebsd-current)
  • Re: Bootstraping compilers ?
    ... For this reason many Gcc compilers may not be able to ... (Assuming host and target are the same). ... However once you have written a C99 compiler you can then ...
    (comp.compilers)
  • Re: So what Standard are we working off?
    ... compiled by a C99 compiler? ... Actually this is not a compiler question ... Is there anything in C90 that C99 must reject or ... Variable length arrays are not a part of C90/C95. ...
    (comp.lang.c)