up | Inhaltsverzeichniss | Kommentar

Manual page for FPVERSION(1)

fpversion - print information about the system's CPU and FPU

SYNOPSIS

fpversion [ -foption ]

DESCRIPTION

fpversion prints information about the system's CPU and all available floating-point hardware on the standard output. It is available on Sun-3, Sun-4 and Sun-386i systems and is meant to be a generalization of foption.1 fpaversion.8 and mc68881version.8

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

corresponds to


cc -ffpa foo.c

OPTIONS

-foption
Prints the fastest floating-point code generation option according to the floating-point hardware present.

SEE ALSO

foption.1 getrusage.2 fpaversion.8 mc68881version.8


index | Inhaltsverzeichniss | Kommentar

Created by unroff & hp-tools. © by Hans-Peter Bischof. All Rights Reserved (1997).

Last modified 21/April/97