0
|
1 %//////////////////////////////////////////////////////////////////////////////
|
|
2 %
|
|
3 % Copyright (c) 2007,2009 Daniel Adler <dadler@uni-goettingen.de>,
|
|
4 % Tassilo Philipp <tphilipp@potion-studios.com>
|
|
5 %
|
|
6 % Permission to use, copy, modify, and distribute this software for any
|
|
7 % purpose with or without fee is hereby granted, provided that the above
|
|
8 % copyright notice and this permission notice appear in all copies.
|
|
9 %
|
|
10 % THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
11 % WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
12 % MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
13 % ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
14 % WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
15 % ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
16 % OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
17 %
|
|
18 %//////////////////////////////////////////////////////////////////////////////
|
|
19
|
490
|
20 \newpage
|
0
|
21
|
|
22 \section{Calling Conventions}
|
|
23
|
|
24 \paragraph{Before we go any further\ldots}
|
|
25
|
|
26 It is important to understand that this section isn't a general
|
|
27 purpose description of the present calling conventions.
|
73
|
28 It merely explains the calling conventions \textbf{for the parameter/return types
|
490
|
29 supported by \dc} (not for e.g. unsupported types like SIMD data types
|
|
30 (\_\_m64, \_\_m128, \_\_m128i, \_\_m128d), etc.).\\ We strongly advise the
|
|
31 reader not to use this document as a general purpose calling convention
|
|
32 reference.
|
0
|
33
|
467
|
34 \input{callconvs/callconv_x86}\clearpage
|
|
35 \input{callconvs/callconv_x64}\clearpage
|
|
36 \input{callconvs/callconv_ppc32}\clearpage
|
|
37 \input{callconvs/callconv_ppc64}\clearpage
|
|
38 \input{callconvs/callconv_arm32}\clearpage
|
|
39 \input{callconvs/callconv_arm64}\clearpage
|
|
40 \input{callconvs/callconv_mips32}\clearpage
|
|
41 \input{callconvs/callconv_mips64}\clearpage
|
|
42 \input{callconvs/callconv_sparc32}\clearpage
|
0
|
43 \input{callconvs/callconv_sparc64}
|
|
44
|