1
/* -----------------------------------------------------------------------------
3
(c) The University of Glasgow, 1994-2004
5
Native-code generator header file - just useful macros for now.
7
-------------------------------------------------------------------------- */
12
#include "ghc_boot_platform.h"
16
-- - - - - - - - - - - - - - - - - - - - - -
18
# define IF_ARCH_alpha(x,y) x
20
# define IF_ARCH_alpha(x,y) y
22
-- - - - - - - - - - - - - - - - - - - - - -
24
# define IF_ARCH_i386(x,y) x
26
# define IF_ARCH_i386(x,y) y
28
-- - - - - - - - - - - - - - - - - - - - - -
29
#if x86_64_TARGET_ARCH
30
# define IF_ARCH_x86_64(x,y) x
32
# define IF_ARCH_x86_64(x,y) y
34
-- - - - - - - - - - - - - - - - - - - - - -
36
# define IF_OS_freebsd(x,y) x
38
# define IF_OS_freebsd(x,y) y
40
-- - - - - - - - - - - - - - - - - - - - - -
41
#if dragonfly_TARGET_OS
42
# define IF_OS_dragonfly(x,y) x
44
# define IF_OS_dragonfly(x,y) y
46
-- - - - - - - - - - - - - - - - - - - - - -
48
# define IF_OS_netbsd(x,y) x
50
# define IF_OS_netbsd(x,y) y
52
-- - - - - - - - - - - - - - - - - - - - - -
54
# define IF_OS_openbsd(x,y) x
56
# define IF_OS_openbsd(x,y) y
58
-- - - - - - - - - - - - - - - - - - - - - -
60
# define IF_OS_linux(x,y) x
62
# define IF_OS_linux(x,y) y
64
-- - - - - - - - - - - - - - - - - - - - - -
65
#if linuxaout_TARGET_OS
66
# define IF_OS_linuxaout(x,y) x
68
# define IF_OS_linuxaout(x,y) y
70
-- - - - - - - - - - - - - - - - - - - - - -
72
# define IF_OS_bsdi(x,y) x
74
# define IF_OS_bsdi(x,y) y
76
-- - - - - - - - - - - - - - - - - - - - - -
77
#if cygwin32_TARGET_OS
78
# define IF_OS_cygwin32(x,y) x
80
# define IF_OS_cygwin32(x,y) y
82
-- - - - - - - - - - - - - - - - - - - - - -
84
# define IF_ARCH_sparc(x,y) x
86
# define IF_ARCH_sparc(x,y) y
88
-- - - - - - - - - - - - - - - - - - - - - -
90
# define IF_OS_sunos4(x,y) x
92
# define IF_OS_sunos4(x,y) y
94
-- - - - - - - - - - - - - - - - - - - - - -
95
-- NB: this will catch i386-*-solaris2, too
96
#if solaris2_TARGET_OS
97
# define IF_OS_solaris2(x,y) x
99
# define IF_OS_solaris2(x,y) y
101
-- - - - - - - - - - - - - - - - - - - - - -
102
#if powerpc_TARGET_ARCH
103
# define IF_ARCH_powerpc(x,y) x
105
# define IF_ARCH_powerpc(x,y) y
107
-- - - - - - - - - - - - - - - - - - - - - -
109
# define IF_OS_darwin(x,y) x
111
# define IF_OS_darwin(x,y) y