fpversion man page on Solaris

Man page or keyword search:  
man Server   20652 pages
apropos Keyword Search (all sections)
Output format
Solaris logo
[printable version]

FPVERSION(1)							  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.	fpversion is available
       only on SPARC platforms.

       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, and highest performance SPARC ABI-
       compliant floating-point code generation option.	 The type of  informa‐
       tion  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.

OPTIONS
       -foption	   Prints  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 but note that the output does not include a	 lead‐
		   ing -".

EXAMPLES
       demo% fpversion
	A SPARC-based CPU is available.
	Kernel says CPU's clock rate is 1062.0 MHz.
	Kernel says main memory's clock rate is 177.0 MHz.

	Sun-4 floating-point controller version 0 found.
	An UltraSPARC chip is available.

	Use "-xtarget=ultra3i -xcache=64/32/4:1024/64/4" code-generation option.

	Hostid = 0x83270XXX.

       demo% fpversion -foption
       xtarget=ultra3i -xcache=64/32/4:1024/64/4

       Use fpversion on compiler command lines:

	 cc -`fpversion -foption` any.c

       corresponds to

	 cc -xtarget=ultra2i -xcache=16/32/1:2048/64/1 any.c

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.

				  April 2007			  FPVERSION(1)
[top]

List of man pages available for Solaris

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net