Skip to content
Quentin Delhaye edited this page Mar 26, 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.

Clone this wiki locally