Mercurial > pub > dyncall > dyncall
diff doc/manual/callconvs/callconv_x86.tex @ 490:17287342e273
manual:
- removed all API description and referred to manual instead, to avoid outdated and/or duplicated doc
- cleanups and clarificaions
author | Tassilo Philipp |
---|---|
date | Sun, 20 Mar 2022 14:26:55 +0100 |
parents | e5820b7a3fbc |
children | fc614cb865c6 |
line wrap: on
line diff
--- a/doc/manual/callconvs/callconv_x86.tex Fri Mar 18 12:36:49 2022 +0100 +++ b/doc/manual/callconvs/callconv_x86.tex Sun Mar 20 14:26:55 2022 +0100 @@ -64,8 +64,8 @@ the syscall number as target parameter and selecting the correct mode. -\clearpage +\pagebreak \subsubsection{cdecl} @@ -142,8 +142,7 @@ \end{figure} -\clearpage - +\pagebreak \subsubsection{MS fastcall} @@ -180,6 +179,8 @@ aggregate doesn't fit entirely into ecx and edx, it is passed via the stack and remaining registers are free for subsequent arguments) \end{itemize} +\clearpage + \paragraph{Return values} \begin{itemize} @@ -245,6 +246,9 @@ \caption{Register usage on x86 fastcall (GNU) calling convention} \end{table} + +\clearpage + \paragraph{Parameter passing} \begin{itemize} @@ -269,8 +273,6 @@ \end{itemize} -\pagebreak - \paragraph{Stack layout} Stack directly after function prolog:\\ @@ -301,6 +303,8 @@ \end{figure} +\pagebreak + \subsubsection{Borland fastcall} Also called {\bf register convention} by Borland. @@ -340,8 +344,6 @@ \end{itemize} -\pagebreak - \paragraph{Return values} \begin{itemize} @@ -384,6 +386,8 @@ \end{figure} +\pagebreak + \subsubsection{Watcom fastcall} @@ -460,6 +464,7 @@ \end{figure} +\pagebreak \subsubsection{win32 stdcall} @@ -537,6 +542,9 @@ \caption{Stack layout on x86 stdcall calling convention} \end{figure} + +\pagebreak + \subsubsection{MS thiscall} \paragraph{Registers and register usage} @@ -559,8 +567,6 @@ \caption{Register usage on x86 thiscall (MS) calling convention} \end{table} -\clearpage - \paragraph{Parameter passing} @@ -699,8 +705,6 @@ -\clearpage - \subsubsection{plan9call} \paragraph{Registers and register usage} @@ -734,7 +738,6 @@ \item aggregates (structs, unions) are pushed as a sequence of dwords \end{itemize} -\pagebreak \paragraph{Return values} @@ -773,8 +776,6 @@ \end{figure} -\clearpage - \subsubsection{Linux syscalls} \paragraph{Parameter passing} @@ -787,6 +788,7 @@ \item register eax holds the return value \end{itemize} + \subsubsection{*BSD syscalls} \paragraph{Parameter passing}