These ‘-m
’ options are supported on the SPU:
-mwarn-reloc
-merror-reloc
-mno-error-reloc
disables the error, -mwarn-reloc
generates a warning instead. -msafe-dma
-munsafe-dma
-munsafe-dma
you must use the volatile
keyword to protect memory accesses, but that can lead to inefficient code in places where the memory is known to not change. Rather than mark the memory as volatile, you can use -msafe-dma
to tell the compiler to treat the DMA instructions as potentially affecting all memory. -mbranch-hints
-msmall-mem
-mlarge-mem
-mlarge-mem
code is generated that assumes a full 32-bit address. -mstdmain
-mstdmain
, GCC links your program against startup code that assumes a C99-style interface to main
, including a local copy of argv
strings. -mfixed-range=
register-range
-mea32
-mea64
__ea
named address space qualifier are either 32 or 64 bits wide. The default is 32 bits. As this is an ABI-changing option, all object code in an executable must be compiled with the same setting. -maddress-space-conversion
-mno-address-space-conversion
__ea
address space as superset of the generic address space. This enables explicit type casts between __ea
and generic pointer as well as implicit conversions of generic pointers to __ea
pointers. The default is to allow address space pointer conversions. -mcache-size=
cache-size
__ea
address space with a particular cache size. Possible options for cache-size are ‘8
’, ‘16
’, ‘32
’, ‘64
’ and ‘128
’. The default cache size is 64KB. -matomic-updates
-mno-atomic-updates
__ea
named address space qualifier do not interfere with changes to other PPU variables residing in the same cache line from PPU code. If you do not use atomic updates, such interference may occur; however, writing back cache lines is more efficient. The default behavior is to use atomic updates. -mdual-nops
-mdual-nops=
n
-mno-dual-nops
. Disabled with -Os
. -mhint-max-nops=
n
-mhint-max-distance=
n
-msafe-hints
hbrp
instruction to make sure this stall won't happen.
© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-6.3.0/gcc/SPU-Options.html