John Youngquist wrote
When you enable things like range checking. How do you identify
when an exception has occurred and what it means?
AFAIK a checking code is generated for every error-possible code. That's why it seems a little slower when you compile programs with checkings enabled. You can try to get the assembler output by specifying -a<lnrt> compiler option. Try program below and check it.
var
i: Byte;
begin
i:=0;
repeat
Inc(i);
until i>255;
end.
John Youngquist wrote 6 lines
I see messages like "Unhandled exception occurred at $hex address"
then a bunch more $hex address'
I don't know what to do with these numbers.
I usually use that for low level debugging. That it, to get what kind of instruction happen at that address that cause the exception.