]> gitweb.factorcode.org Git - factor.git/blob - vm/platform.hpp
VM: don't need the data_roots here
[factor.git] / vm / platform.hpp
1 #if defined(WINDOWS)
2   #if defined(WINNT)
3     #include "os-windows.hpp"
4     #if defined(FACTOR_AMD64)
5       #include "os-windows.64.hpp"
6     #elif defined(FACTOR_X86)
7       #include "os-windows.32.hpp"
8     #else
9       #error "Unsupported Windows flavor"
10     #endif
11   #else
12     #error "Unsupported Windows flavor"
13   #endif
14 #else
15   #include "os-unix.hpp"
16
17   #ifdef __APPLE__
18     #include "os-macosx.hpp"
19     #include "mach_signal.hpp"
20
21     #ifdef FACTOR_X86
22       #include "os-macosx-x86.32.hpp"
23     #elif defined(FACTOR_AMD64)
24       #include "os-macosx-x86.64.hpp"
25     #else
26       #error "Unsupported Mac OS X flavor"
27     #endif
28   #else
29     #include "os-genunix.hpp"
30     #if defined(__linux__)
31       #define FACTOR_OS_STRING "linux"
32       #include "os-linux.hpp"
33
34       #if defined(FACTOR_X86)
35         #include "os-linux-x86.32.hpp"
36       #elif defined(FACTOR_PPC64)
37         #include "os-linux-ppc.64.hpp"
38       #elif defined(FACTOR_PPC32)
39         #include "os-linux-ppc.32.hpp"
40       #elif defined(FACTOR_ARM)
41         #include "os-linux-arm.hpp"
42       #elif defined(FACTOR_AMD64)
43         #include "os-linux-x86.64.hpp"
44       #else
45         #error "Unsupported Linux flavor"
46       #endif
47     #else
48       #error "Unsupported OS"
49     #endif
50   #endif
51 #endif
52
53 #if defined(FACTOR_X86)
54   #include "cpu-x86.32.hpp"
55   #include "cpu-x86.hpp"
56 #elif defined(FACTOR_AMD64)
57   #include "cpu-x86.64.hpp"
58   #include "cpu-x86.hpp"
59 #elif defined(FACTOR_PPC)
60   #include "cpu-ppc.hpp"
61 #elif defined(FACTOR_ARM)
62   #include "cpu-arm.hpp"
63 #else
64   #error "Unsupported CPU"
65 #endif