annotate dyncallback/dyncall_args.c @ 143:170cde9e2a83

- arm arm/thumb cleanup, sharing more files, directly
author cslag
date Sat, 20 Aug 2016 11:39:54 +0200
parents f63467916f98
children b11b0735b09f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
1 /*
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
2
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
3 Package: dyncall
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
4 Library: dyncallback
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
5 File: dyncallback/dyncall_args.c
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
6 Description: Callback's Arguments VM - Implementation back-end selector
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
7 License:
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
8
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
9 Copyright (c) 2007-2015 Daniel Adler <dadler@uni-goettingen.de>,
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
10 Tassilo Philipp <tphilipp@potion-studios.com>
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
11
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
12 Permission to use, copy, modify, and distribute this software for any
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
13 purpose with or without fee is hereby granted, provided that the above
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
14 copyright notice and this permission notice appear in all copies.
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
15
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
16 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
17 WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
18 MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
19 ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
20 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
21 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
22 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
23
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
24 */
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
25
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
26 #include "../dyncall/dyncall_macros.h"
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
27
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
28 #if defined(DC__Arch_Intel_x86)
37
020ef1972d31 - cosmetics
cslag
parents: 0
diff changeset
29 # include "dyncall_args_x86.c"
122
f63467916f98 - first draft of mips64 n64 callbacks, not everything working, though
cslag
parents: 102
diff changeset
30 #elif defined(DC__Arch_AMD64)
37
020ef1972d31 - cosmetics
cslag
parents: 0
diff changeset
31 # include "dyncall_args_x64.c"
122
f63467916f98 - first draft of mips64 n64 callbacks, not everything working, though
cslag
parents: 102
diff changeset
32 #elif defined(DC__Arch_PPC32)
f63467916f98 - first draft of mips64 n64 callbacks, not everything working, though
cslag
parents: 102
diff changeset
33 # if defined(DC__OS_Darwin)
37
020ef1972d31 - cosmetics
cslag
parents: 0
diff changeset
34 # include "dyncall_args_ppc32.c"
020ef1972d31 - cosmetics
cslag
parents: 0
diff changeset
35 # else
020ef1972d31 - cosmetics
cslag
parents: 0
diff changeset
36 # include "dyncall_args_ppc32_sysv.c"
020ef1972d31 - cosmetics
cslag
parents: 0
diff changeset
37 # endif
122
f63467916f98 - first draft of mips64 n64 callbacks, not everything working, though
cslag
parents: 102
diff changeset
38 #elif defined(DC__Arch_PPC64)
37
020ef1972d31 - cosmetics
cslag
parents: 0
diff changeset
39 # include "dyncall_args_ppc64.c"
143
170cde9e2a83 - arm arm/thumb cleanup, sharing more files, directly
cslag
parents: 122
diff changeset
40 #elif defined(DC__Arch_ARM)
170cde9e2a83 - arm arm/thumb cleanup, sharing more files, directly
cslag
parents: 122
diff changeset
41 # include "dyncall_args_arm32.c"
122
f63467916f98 - first draft of mips64 n64 callbacks, not everything working, though
cslag
parents: 102
diff changeset
42 #elif defined(DC__Arch_MIPS)
102
b7a9b524f0c3 - mips o32 callbacks, first draft (calls into handler correctly, with correct params, but doesn't return)
cslag
parents: 37
diff changeset
43 # if defined(DC__ABI_MIPS_O32)
b7a9b524f0c3 - mips o32 callbacks, first draft (calls into handler correctly, with correct params, but doesn't return)
cslag
parents: 37
diff changeset
44 # include "dyncall_args_mips_o32.c"
b7a9b524f0c3 - mips o32 callbacks, first draft (calls into handler correctly, with correct params, but doesn't return)
cslag
parents: 37
diff changeset
45 # else
b7a9b524f0c3 - mips o32 callbacks, first draft (calls into handler correctly, with correct params, but doesn't return)
cslag
parents: 37
diff changeset
46 # include "dyncall_args_mips.c"
b7a9b524f0c3 - mips o32 callbacks, first draft (calls into handler correctly, with correct params, but doesn't return)
cslag
parents: 37
diff changeset
47 # endif
122
f63467916f98 - first draft of mips64 n64 callbacks, not everything working, though
cslag
parents: 102
diff changeset
48 #elif defined(DC__Arch_MIPS64)
f63467916f98 - first draft of mips64 n64 callbacks, not everything working, though
cslag
parents: 102
diff changeset
49 # include "dyncall_args_mips64.c"
f63467916f98 - first draft of mips64 n64 callbacks, not everything working, though
cslag
parents: 102
diff changeset
50 #elif defined(DC__Arch_Sparc)
37
020ef1972d31 - cosmetics
cslag
parents: 0
diff changeset
51 # include "dyncall_args_sparc32.c"
122
f63467916f98 - first draft of mips64 n64 callbacks, not everything working, though
cslag
parents: 102
diff changeset
52 #elif defined(DC__Arch_Sparcv9)
37
020ef1972d31 - cosmetics
cslag
parents: 0
diff changeset
53 # include "dyncall_args_sparc64.c"
122
f63467916f98 - first draft of mips64 n64 callbacks, not everything working, though
cslag
parents: 102
diff changeset
54 #elif defined(DC__Arch_ARM64)
f63467916f98 - first draft of mips64 n64 callbacks, not everything working, though
cslag
parents: 102
diff changeset
55 # if defined(DC__OS_Darwin)
0
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
56 # include "dyncall_args_arm64_apple.c"
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
57 # else
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
58 # include "dyncall_args_arm64.c"
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
59 # endif
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
60 #endif
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
61