Skip to content
Quentin Delhaye edited this page Mar 29, 2021 · 20 revisions

Troubleshooting

The code works on some other computer, but not on mine

  • 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 */
  );

My image output is shifted at some point

Check that you read/write in binary by specifying rb and wb in fread and fwrite.

I get Exception code c0000005, what's up with that?

On Windows, "Exception code c0000005 is the code for an access violation".

Most probable reasons:

  1. 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

  2. You are reading/writing outside of allocated memory (eg. you have an array of 3 elements, and you read/write to array[3])

Clone this wiki locally