K
Klaus Pirker
Hi
I have a very simple codefragment where I wanna test the _mm_clflush
instruction.
#include <stdio.h>
#include <emmintrin.h>
int main()
{
int *i = NULL;
int a = 123;
i = &a;
printf(" i = %d\n", *i);
_mm_clflush(&i);
return (0);
}
However, when I try to compile & link I get the following error message:
/tmp/ccKOPY3f.o(.text+0x4d): In function `main':
: undefined reference to `_mm_clflush'
collect2: ld returned 1 exit status
Could it be that the instruction is not supported on my Pentium 4 processor?
thanks
I have a very simple codefragment where I wanna test the _mm_clflush
instruction.
#include <stdio.h>
#include <emmintrin.h>
int main()
{
int *i = NULL;
int a = 123;
i = &a;
printf(" i = %d\n", *i);
_mm_clflush(&i);
return (0);
}
However, when I try to compile & link I get the following error message:
/tmp/ccKOPY3f.o(.text+0x4d): In function `main':
: undefined reference to `_mm_clflush'
collect2: ld returned 1 exit status
Could it be that the instruction is not supported on my Pentium 4 processor?
thanks