f78
Compiler options for m68k
Contents|Index|Previous|Next
Compiler
options for m68k
When you run gcc,
you can use command-line options to choose machine-specific details. For
information on all the gcc
command-line options, see GNU
CC Command Options in Using
GNU CC in GNUPro Compiler Tools.
See the following documentation
for discussion of more compiler options for m68k.
gcc
options for architecture and code generation for m68k
-g
The compiler debugging option
‘-g’
is essential to see interspersed high-level source statements, since without
de-bugging information the assembler cannot tie most of the generated code
to lines of the original source file.
-m68000
Generate code for the Motorola
m68000.
-m68020
Generate code for the Motorola
m68020.
-m68030
Generate code for the Motorola
m68030.
-m68040
Generate code for the Motorola
m68040
efb
.
Also enables code generation for the 68881
FPU by default.
-m68060
Generate code for the Motorola
m68060.
Also enables code generation for the 68881
FPU by default.
-m68332
Generate code for the Motorola
cpu32
family, of which the Motorola m68332
is a member.
gcc
options for floating point for m68k
-msoft-float
Generate output containing
library calls for floating point. The Motorola configurations of libgcc
include a collection of subroutines to implement these library calls.
-m68881
Generate code for the Motorola
m68881
FPU. See compiler option
‘-m68040’,
in the previous section, “GCC options for architecture and code generation.”
Floating
point subroutines for m68k
The following two kinds of
floating point subroutines are useful with GCC.
-
Software implementations of
the basic functions (floating-point multiply, divide, add, subtract), for
use when there is no hardware floating-point support.
-
General-purpose mathematical
subroutines.
The GNUPro Toolkit from
Cygnus Solutions includes an implementation of the standard C mathematical
subroutine library. See Mathematical
Functions (math.h)
in GNUPro
Math Library in GNUPro Libraries.
0