Man Page fpversion.1




NAME

     fpversion - print information about the system CPU and FPU


SYNOPSIS

     fpversion [ -foption ]


DESCRIPTION

     fpversion prints information about the system  CPU  and  all
     available  floating-point  hardware  on the standard output.
     (It replaces the older foption and fpaversion.)

     Invoked without an argument, some of the following  informa-
     tion  will  be  displayed:   CPU  type and approximate clock
     rate, FPU type, apparent mask number and  approximate  clock
     rate,  and highest performance SPARC ABI-compliant 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  prints  only  the
     fastest  SPARC  ABI-compliant floating-point code generation
     option for that particular system.  This usage  is  intended
     for  shell  scripts and Makefiles that compile programs with
     the fastest SPARC ABI-compliant floating-point code  genera-
     tion   option   according  to  the  floating-point  hardware
     present.


OPTIONS

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


NOTES

     On UltraSPARC platforms,  the  fastest  SPARC  ABI-compliant
     floating-point  code  generation option does not exploit the
     full potential of the underlying  hardware.   If  SPARC  ABI
     compliance  is  not a consideration, use the code generation
     option   of   -xtarget=native    in    32-bit    mode    and
     -xtarget=native64 in 64-bit mode to better utilize the SPARC
     hardware present.