Mercurial > pub > dyncall > dyncall
comparison dyncallback/dyncall_callback_arch.S @ 0:3e629dc19168
initial from svn dyncall-1745
author | Daniel Adler |
---|---|
date | Thu, 19 Mar 2015 22:24:28 +0100 |
parents | |
children | 03c516772c65 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:3e629dc19168 |
---|---|
1 /* | |
2 | |
3 Package: dyncall | |
4 Library: dyncallback | |
5 File: dyncallback/dyncall_callback_arch.S | |
6 Description: Callback Thunk - Implementation Back-end selector | |
7 License: | |
8 | |
9 Copyright (c) 2007-2015 Daniel Adler <dadler@uni-goettingen.de>, | |
10 Tassilo Philipp <tphilipp@potion-studios.com> | |
11 | |
12 Permission to use, copy, modify, and distribute this software for any | |
13 purpose with or without fee is hereby granted, provided that the above | |
14 copyright notice and this permission notice appear in all copies. | |
15 | |
16 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
17 WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
18 MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
19 ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
20 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | |
21 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | |
22 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
23 | |
24 */ | |
25 | |
26 | |
27 | |
28 #include "../dyncall/dyncall_macros.h" | |
29 | |
30 #if defined(DC__C_MSVC) | |
31 # if defined(DC__OS_Win32) | |
32 # include "dyncall_callback_x86_masm.asm" | |
33 # elif defined(DC__OS_Win64) | |
34 # include "dyncall_callback_x64_masm.asm" | |
35 # endif | |
36 #elif defined(DC__OS_Plan9) | |
37 # if defined(DC__Arch_Intel_x86) | |
38 # include "dyncall_callback_x86_8a.s" | |
39 # else | |
40 # error Unsupported Architecture on Plan9. | |
41 # endif | |
42 #elif defined(DC__OS_Darwin) | |
43 # if defined(DC__Arch_PPC32) | |
44 # include "dyncall_callback_ppc32_apple.s" | |
45 # elif defined(DC__Arch_ARM_ARM) | |
46 # include "dyncall_callback_arm32_arm_apple.s" | |
47 # elif defined(DC__Arch_ARM_THUMB) | |
48 # include "dyncall_callback_arm32_thumb_apple.s" | |
49 # elif defined(DC__Arch_AMD64) | |
50 # include "dyncall_callback_x64.S" | |
51 # elif defined(DC__Arch_Intel_x86) | |
52 # include "dyncall_callback_x86.S" | |
53 # elif defined(DC__Arch_ARM64) | |
54 # include "dyncall_callback_arm64.s" | |
55 # else // e.g. PowerPC G5, which is PPC64, etc. | |
56 # error Unsupported Architecture on Darwin/OS X. | |
57 # endif | |
58 #else | |
59 # if defined(DC__Arch_Intel_x86) | |
60 # include "dyncall_callback_x86.S" | |
61 # elif defined(DC__Arch_AMD64) | |
62 # include "dyncall_callback_x64.S" | |
63 # elif defined(DC__Arch_PPC32) | |
64 # include "dyncall_callback_ppc32.S" | |
65 # elif defined(DC__Arch_PPC64) | |
66 # include "dyncall_callback_ppc64.S" | |
67 # elif defined(DC__Arch_ARM_ARM) | |
68 # include "dyncall_callback_arm32_arm_gas.s" | |
69 # elif defined(DC__Arch_ARM_THUMB) | |
70 # include "dyncall_callback_arm32_thumb_gas.s" | |
71 # elif defined(DC__Arch_Sparc) | |
72 # include "dyncall_callback_sparc32.s" | |
73 # elif defined(DC__Arch_Sparcv9) | |
74 # include "dyncall_callback_sparc64.s" | |
75 # elif defined(DC__Arch_ARM64) | |
76 # include "dyncall_callback_arm64.s" | |
77 # endif | |
78 #endif | |
79 |