Sun Studio 12: C User's Guide

B.2.119 -xP

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,


int argc;
char *argv[];

produces this output:

int f(void);
int main(int, char **);