<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
12.03.2010 21:55, Jonas Maebe wrote:
<blockquote
cite="mid:A7A852B2-0CB3-47F8-B005-1A165A426AF9@elis.ugent.be"
type="cite"><br>
PS: one reason that this is not advancing is because FPC does not
support it correctly either, and I don't want to add support for a
broken implementation to GDB since then it has to be changed again
later anyway. I also don't know of any description of the Borland
fastcall calling convention, so it is currently not possible to
properly fix this (not without guessing and probably breaking it again
in yet some other case). See
<a class="moz-txt-link-freetext" href="http://bugs.freepascal.org/view.php?id=15691">http://bugs.freepascal.org/view.php?id=15691</a>
<br>
</blockquote>
What exactly needs to be known?<br>
<br>
I found the next description in the net:<br>
<br>
<span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="font-family: arial,helvetica,sans-serif; font-size: 13px;">Few
first arguments of fastcall that fit into a processor's register (i.e.
with a size up to 32 bits for x86 architecture) will be passed via
registers instead of being put onto the stack. The remaining arguments
are passed right-to-left on the stack (like in cdecl). Return values
are passed through the AL, AX, or EAX register. The stack is usually
callee-cleared unless the function takes a variable number of
parameters. Most<span class="Apple-converted-space"> </span><a
href="/e/r/ru/runtime_library.htm"
style="color: rgb(51, 0, 102); text-decoration: underline;">RTL</a>functions,
however, take a small number of parameters, so they don't have to clear
the stack at all. <b
style="font-weight: bold; color: black; background-color: rgb(255, 255, 102);">Borland</b><span
class="Apple-converted-space"> </span><tt>fastcall</tt><span
class="Apple-converted-space"> </span><b
style="font-weight: bold; color: black; background-color: rgb(255, 153, 153);">convention</b><span
class="Apple-converted-space"> </span>passes first THREE arguments via
EAX, EDX, ECX;</span></span><br>
<br>
If something more is required please let me know and I will search.<br>
<br>
Best regards,<br>
Paul Ishenin.<br>
</body>
</html>