| Red Hat Documentation |
|
Compiler options for SPARC When you run GCC, you can use command-line options to choose machine-specific details. For discussions of GCC command-line options, see GCC options for architecture and code generation for SPARC and SPARClite, GCC options for floating point for SPARC and SPARClite, and Floating point subroutines for SPARC and SPARClite, as well as GNU CC command options in Using GNU CC in GNUPro Compiler Tools. GCC options for architecture and code generation for SPARC and SPARClite The GNUPro Toolkit supports the machine-dependent options for SPARC in addition to special compiler command-line options available for Fujitsu SPARClite. Both kinds of options are described in SPARC options in Using GNU CC in GNUPro Compiler Tools.
-msparclite (which is on automatically for any of the Fujitsu SPARClite configurations) gives you SPARClite code. This adds the integer multiply (smul and umul, just as in SPARC version 8), the integer divide-step (divscc), and scan (scan) instructions which exist in SPARClite but not in SPARC version 7. Using -msparclite when you run the compiler does not, however, give you floating point code that uses the entry points for US Softwares GOFAST library. GCC options for floating point for SPARC and SPARClite The following command line options are available for both the SPARC and the Fujitsu SPARClite configurations of the compiler. See also SPARC options in Using GNU CC in GNUPro Compiler Tools.
-mhard-float
-mno-sfpu
To use the US Software library, include the appropriate call on the GCC command line. To use the libgcc version, you need nothing special; gcc links with libgcc automatically after all other object files and libraries. Floating point subroutines for SPARC and SPARClite The following two kinds of floating point subroutines are useful with GCC.
(floating-point functions for multiply, divide, add, subtract), for use when there is no hardware floating-point support. GNUPro Toolkit includes an implementation of the standard C mathematical subroutine library. See Mathematical functions (math.h) in GNUPro Math Library in GNUPro Libraries. |
|
© 2001 Red Hat, Inc. All rights reserved. About Red Hat : Legal statement : Privacy statement : Y2K statement : Contact Red Hat |