1

I'm trying to evaluate the gain if I insert prefetching instructions manually into a source code and when I order the compiler ARMCC to insert that prefetching instructions automatically. But I don't know the compilation option (command-line) that orders ARMCC compiler to insert prefetching instructions automatically during the compilation process. Thanks !

Perrin NT
  • 11
  • 3

1 Answers1

0

They are under documentation topic Chapter 10 Compiler-specific Features

__pld: This intrinsic inserts a data prefetch, for example PLD, into the instruction stream generated by the compiler. It enables you to signal to the memory system from your C or C++ program that a data load from an address is likely in the near future.

__pldw: This intrinsic inserts a PLDW instruction into the instruction stream generated by the compiler. It enables you to signal to the memory system from your C or C++ program that a data load from an address with an intention to write is likely in the near future. This intrinsic inserts a PLDW instruction into the instruction stream generated by the compiler. It enables you to signal to the memory system from your C or C++ program that a data load from an address with an intention to write is likely in the near future.

__pli: This intrinsic inserts an instruction prefetch, for example PLI, into the instruction stream generated by the compiler. It enables you to signal to the memory system from your C or C++ program that an instruction load from an address is likely in the near future.

auselen
  • 27,577
  • 7
  • 73
  • 114
  • Thanks @auselen I'm aware of that and I've used that intrinsic to insert data prefetching instructions manually into my source code and ARMCC generated PLD accordingly. But, what I request is to know the option to pass into the command-line of ARMCC compiler (as with gcc ... --fprefetch-loop-arrays) to order ARMCC compiler to add PLD into the instruction stream generated. My goal is to compare what ARMCC does to what I'm doing. – Perrin NT Feb 24 '16 at 13:30