Closed resom-d closed 2 years ago
Hi, you got any simple repro code/project to share?
In the watch window this is probably due to the optimizer confusing the debugger. You can mostly fix this by changing the makefile so optimization is set to -Og instead of -Ofast.
If you're outputting values using KPrintF then you might be using "%d" which expects 16bit shorts. You typically have to use "%ld" to output 32bit ints correctly.
Hello, the hint you gave about optimization does not work in my case. But about the io you were right, that's good now. Besides, I'm using the template you have on github and since I use this (because of the p61 player) gcc throws a lot of warnings. You can check my little project at https://github.com/resom-d/Hank_2021 The io issues is in a small intuition app "game of life" also on github. I just started coding again for the amiga since the 90's - don't expect much...
Thanks anyway Hank
For the -Og makefile change to work you need to make sure you delete all the .obj files, forcing them to rebuild. But even then it's not always possible for the debugger to show you everything.
I find a lot of times when watching variables the values do show up weired, sepecially on structs. Also when I try to output stuff to io the values written do not match. regards hank