Compiler options for PowerPC

Ian Lance Taylor iant@google.com
Mon Aug 6 14:54:00 GMT 2007


Jakob Lechner <jakob.lechner@student.tuwien.ac.at> writes:

> Is there a compiler option for disabling the dcbt instruction and
> similar cache control instructions?

The compiler won't generally spontaneously emit dcbt.  It will do so
if your code uses __builtin_prefetch, or if you use the
-fprefetch-loop-arrays option.  The way to not emit dcbt is to not do
that.

Ian



More information about the Gcc-help mailing list