mnurzia / rv

32-bit RISC-V CPU in ~800 lines of C89
MIT License
608 stars 27 forks source link

current version does not work wwith -O3 on some compilers #4

Open alexriegler12 opened 5 months ago

alexriegler12 commented 5 months ago

if I compile rv.c with MinGW separately with -O3 enabled and then link it to my SDL Emulator, it doesn't work. This does not occur with previous versions.

alexriegler12 commented 5 months ago

After disabling the endcvt function, it works fine.

mnurzia commented 5 months ago

Could you provide more details on why it doesn't work? Does it segfault?

alexriegler12 commented 5 months ago

No, it does not segfault, but just doesn't execute my program correctly

mnurzia commented 5 months ago

You need to be more specific, otherwise I can't fix the problem. What is the program being run?