Recent

Author Topic: [SOLVED] __builtin_prefetch  (Read 1287 times)

julkas

  • Guest
[SOLVED] __builtin_prefetch
« on: June 06, 2020, 06:25:59 am »
I need  C  __builtin_prefetch analog.
Any hint?
« Last Edit: June 06, 2020, 11:46:34 am by julkas »

Thaddy

  • Hero Member
  • *****
  • Posts: 16832
  • Ceterum censeo Trump esse delendam
Re: __builtin_prefetch
« Reply #1 on: June 06, 2020, 10:30:34 am »
isn't it just (intel/amd):
Code: Pascal  [Select][+][-]
  1. procedure prefetch;inline;asm prefetch;end;
Note that prefetch is not very useful on modern processors.
(But it had a marked improvement on old amd64.)
« Last Edit: June 06, 2020, 10:44:53 am by Thaddy »
Changing servers. thaddy.com may be temporary unreachable but restored when the domain name transfer is done.

PascalDragon

  • Hero Member
  • *****
  • Posts: 5942
  • Compiler Developer
Re: __builtin_prefetch
« Reply #2 on: June 06, 2020, 11:01:33 am »
I need  C  __builtin_prefetch analog.
Any hint?

It's simply called Prefetch. It will only have an effect on x86 (all three bitnesses), PowerPC (both bitnesses) and ARM as only there it's backend is implemented. On other platforms won't have an effect.

julkas

  • Guest
Re: __builtin_prefetch
« Reply #3 on: June 06, 2020, 11:45:53 am »

 

TinyPortal © 2005-2018