-
Notifications
You must be signed in to change notification settings - Fork 0
SIMD
Quentin Delhaye edited this page Mar 29, 2021
·
20 revisions
- Deactivate any optimisation flag, such as
-O3
,-O2
and so on. - Check the OS architecture. Are you both working on 64 or 32 bits?
- Protect your asm code with
volatile
like this:
__asm__ __volatile__(
/* Your code here */
);
Check that you read/write in binary by specifying rb
and wb
in fread
and fwrite
.
On Windows, "Exception code c0000005
is the code for an access violation".
Most probable reasons:
-
You are using an instruction that reads 128 bits of aligned memory, but the operand you provide is unaligned. Use a memory operand that is aligned or use an instruction that do not require aligned memory
-
You are reading/writing outside of allocated memory (eg. you have an array of 3 elements, and you read/write to array[3])