[fpc-pascal] Question on exceptions
leledumbo
leledumbo_cool at yahoo.co.id
Mon Aug 25 09:39:31 CEST 2008
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:
>
> 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.
--
View this message in context: http://www.nabble.com/Question-on-exceptions-tp19137422p19139221.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20080825/c3ffa4b3/attachment.html>
More information about the fpc-pascal
mailing list