Mail Archives: djgpp/1997/06/05/11:50:12
> Well, actually I want something that would describe ANSI standards, so that
> I can write a program that I am sure is fully ANSI compatible, and
> according to the documents GCC with the -ansi and -pedantic flags does not
> quite fully check that. I don't know, maybe there is some other document
> available on the computer that can tell me about this stuff?
Are you planning on porting your software to a platform that
gcc does not support? If not, there probably isn't any good
reason why you would want to do this.
-pedantic Is used to catch gcc extensions to the C language. However,
it is easily circumvented by using the __ forms of them which
do not generate warnings.
-ansi can pick up on differences between K&R and ANSI C.
Try the C FAQ maybe. It lists a lot of common hangups about ANSI
C. Or spend the money for the standard, but its not an easy read.
Andrew
- Raw text -