Invoked without an argument, some of the following information will be displayed : CPU type and approximate clock rate, FPU type, apparent mask number and approximate clock rate, version number of the microcode and constants, and highest performance floating-point code generation option. The type of information displayed depends upon the system and the floating-point hardware available. The clock rate is derived by executing instructions in a loop and timing with getrusage.2 and is thus somewhat variable.
Invoked with -foption as its argument, it only prints the fastest floating-point code generation option for that particular system. This usage is intended for shell scripts and Makefiles that compile programs with the fastest floating-point code generation option according to the floating-point hardware present. For example, on a Sun-3 with a MC68881 and an FPA,
cc -`fpversion -foption` foo.c
cc -ffpa foo.c
Created by unroff & hp-tools. © by Hans-Peter Bischof. All Rights Reserved (1997).
Last modified 21/April/97