该选项会累积而不覆盖。
sun_prefetch.h 头文件提供了用于指定显式预取指令的宏。这些预取可能位于对应于宏出现位置的可执行文件中。
要使用显式预取指令,必须在适当的体系结构上包含 sun_prefetch.h,并且从编译器命令中排除 -xprefetch 或者使用 -xprefetch、-xprefetch=auto,explicit、-xprefetch=explicit 或 -xprefetch=yes。
如果调用了宏并包含了 sun_prefetch.h 头文件,但传递了 -xprefetch=no%explicit 或 -xprefetch=no,那么显式预取将不会出现在可执行文件中。
只有启用了自动预取时,才可以使用 latx:factor。即,latx:factor 只有与 yes 或 auto 结合使用时才有效,如 -xprefetch=yes,latx:factor。