I would assume inlining is disabled by default in debug builds but I am not sure what happens with #force_inline. I only ask because I’ve had the RAD debugger crash on me a couple times when stepping into a proc marked as such. It crashes randomly sometimes too but it’s especially bad with #force_inline. Is there something I can do besides remove all #force_inline and hope the compiler is smart enough to optimize it in release mode?
nothing should be done with #force_inline
in debug mode already. -o:none
does not do inlining, and -debug
should imply -o:none
. Inlining is done in -o:minimal
(default if not -debug
) and up.
I see, so the issue might be with the debugger. Thanks for clearing that up.
It could be the debugger, or could be the debug info that Odin generates. If you think it isn’t the debugger you can make a GitHub issue with your piece of code and we can have a look at it. Although, the hard thing with debug info is that issues usually don’t happen anymore when you try to make a small example for a bug report
1 Like