Next | Prev | Up | Top | Contents | Index

Compile Options, 64-Bit Kernel

The cc and ld options listed in Table 10-3 are needed to compile and link a kernel-level driver for a 64-bit kernel in IRIX 6.2.

Compiler Options for 64-Bit Kernel Modules
OptionPurpose
-non_shared Do not compile for shared libraries (dynamic linking).
-elf Compile and link an ELF binary.
-64 -mips3Create a 32-bit executable for the MIPS III architecture. You can use -mips4 instead, but only in a system based on the R10000 processor.
-G 8In a nonloadable driver, use the global table for objects up to 8 bytes.
-G 0In a loadable driver, do not use the global table. Refer to the gp_overflow(5) reference page for a discussion of the global table.
-O2 Maximum recommended optimization level.
-TENV:kernel

-TENV:misalignment=1

Execution environment options for 64-bit compiler.
-OPT:space

-OPT:quad_align_branch_targets=FALSE

-OPT:quad_align_with_memops=FALSE

-OPT:unroll_times=0

Specific optimization constraints for 64-bit compiler.


Next | Prev | Up | Top | Contents | Index