1 #ifndef __FACTOR_MASTER_H__
2 #define __FACTOR_MASTER_H__
37 #define FACTOR_STRINGIZE_I(x) #x
38 #define FACTOR_STRINGIZE(x) FACTOR_STRINGIZE_I(x)
40 // Record compiler version
41 #if defined(__clang__)
42 #define FACTOR_COMPILER_VERSION "Clang (GCC " __VERSION__ ")"
43 #elif defined(__INTEL_COMPILER)
44 #define FACTOR_COMPILER_VERSION \
45 "Intel C Compiler " FACTOR_STRINGIZE(__INTEL_COMPILER)
46 #elif defined(__GNUC__)
47 #define FACTOR_COMPILER_VERSION "GCC " __VERSION__
48 #elif defined(_MSC_FULL_VER)
49 #define FACTOR_COMPILER_VERSION \
50 "Microsoft Visual C++ " FACTOR_STRINGIZE(_MSC_FULL_VER)
52 #define FACTOR_COMPILER_VERSION "unknown"
55 // Record compilation time
56 #define FACTOR_COMPILE_TIME __DATE__ " " __TIME__
58 // Detect target CPU type
61 #elif defined(__amd64__) || defined(__x86_64__) || defined(_M_AMD64)
64 #elif defined(i386) || defined(__i386) || defined(__i386__) || defined(_M_IX86)
66 #elif(defined(__POWERPC__) || defined(__ppc__) || defined(_ARCH_PPC)) && \
67 (defined(__PPC64__) || defined(__64BIT__))
71 #elif defined(__POWERPC__) || defined(__ppc__) || defined(_ARCH_PPC)
75 #error "Unsupported architecture"
85 // Forward-declare this since it comes up in function prototypes
86 namespace factor { struct factor_vm; }
91 #include "layouts.hpp"
92 #include "platform.hpp"
93 #include "utilities.hpp"
94 #include "primitives.hpp"
96 #include "segments.hpp"
97 #include "gc_info.hpp"
98 #include "contexts.hpp"
100 #include "objects.hpp"
101 #include "sampling_profiler.hpp"
102 #include "bignumint.hpp"
103 #include "bignum.hpp"
104 #include "booleans.hpp"
105 #include "instruction_operands.hpp"
106 #include "tagged.hpp"
107 #include "code_blocks.hpp"
108 #include "bump_allocator.hpp"
109 #include "bitwise_hacks.hpp"
110 #include "mark_bits.hpp"
112 #include "free_list.hpp"
113 #include "write_barrier.hpp"
114 #include "object_start_map.hpp"
115 #include "aging_space.hpp"
116 #include "tenured_space.hpp"
117 #include "data_heap.hpp"
118 #include "code_heap.hpp"
120 #include "float_bits.hpp"
123 #include "callbacks.hpp"
124 #include "dispatch.hpp"
127 #include "data_roots.hpp"
128 #include "code_roots.hpp"
129 #include "generic_arrays.hpp"
130 #include "callstack.hpp"
131 #include "slot_visitor.hpp"
132 #include "to_tenured_collector.hpp"
133 #include "arrays.hpp"
135 #include "byte_arrays.hpp"
137 #include "quotations.hpp"
138 #include "inline_cache.hpp"
140 #include "factor.hpp"
142 #endif // __FACTOR_MASTER_H__