Exception Handling in Kylix
By Eli Boling and Chuck Jazdzewski, November 01, 2001
Kylix brings Borland's Delphi toolset and environment from Windows to Linux. And one of the most challenging aspects of the port involved exception handling.
Nov01: Exception Handling in Kylix
<b>(a)</b>
function F(A: Integer): Integer;
begin
Result := A + G(A);
end;
<b>(b)</b>
push eax
call G
@@label1:
pop edx
add eax, edx
ret
Example 3: Stack handling. Simple function (a) and pseudogenerated code (b) for an exception occurring while in G.