Compiler options for the Hitachi H8/300
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.
General gcc options for Hitachi H8/300
-mh
Generate code
for the H8/300H chip.
-mint32
Use 32-bit integers
when compiling for the H8/300H.
-g
The compiler debugging
option, -g,
is essential to see interspersed high-level source statements, since, without
debugging information, the assembler cannot tie most of the generated code
to lines of the original source file.
Floating point subroutines for Hitachi H8/300
The Hitachi H8/300 has no floating point support. Two kinds of floating point subroutines are useful with gcc: