The compiler performs only syntax and semantic checking on the source file in order to print prototypes for all K&R C functions. This option does not produce any object or executable code. For example, specifying -xP with the following source file,
f()
{
}
main(argc,argv)
int argc;
char *argv[];
{
}
|
produces this output:
int f(void); int main(int, char **); |