|
|
1.1 root 1: /* Definitions of target machine for GNU compiler, for DEC Alpha
2: running Windows/NT.
3: Copyright (C) 1995 Free Software Foundation, Inc.
4: Contributed by Richard Kenner ([email protected])
5:
6: This file is part of GNU CC.
7:
8: GNU CC is free software; you can redistribute it and/or modify
9: it under the terms of the GNU General Public License as published by
10: the Free Software Foundation; either version 2, or (at your option)
11: any later version.
12:
13: GNU CC is distributed in the hope that it will be useful,
14: but WITHOUT ANY WARRANTY; without even the implied warranty of
15: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16: GNU General Public License for more details.
17:
18: You should have received a copy of the GNU General Public License
19: along with GNU CC; see the file COPYING. If not, write to
20: the Free Software Foundation, 59 Temple Place - Suite 330,
21: Boston, MA 02111-1307, USA. */
22:
23: /* Say this is Windows/NT for the other config files. */
24: #define WINDOWS_NT 1
25:
26: #include "alpha/alpha.h"
27:
28: /* Names to predefine in the preprocessor for this target machine. */
29:
30: #undef CPP_PREDEFINES
31: #define CPP_PREDEFINES "-DWIN32 -D_WIN32 -DWINNT -D__STDC__=0 -DALMOST_STDC\
32: -D_M_ALPHA -D_ALPHA_ -D__alpha -D__alpha__\
33: -D_LONGLONG -D__unaligned= -D__stdcall= \
34: -Asystem(winnt) -Acpu(alpha) -Amachine(alpha)"
35:
36: #undef ASM_SPEC
37: #undef ASM_FINAL_SPEC
38: #define ASM_SPEC "-nopp -nologo %{g:-Zi}"
39:
40: /* Pointer is 32 bits but the hardware has 64-bit addresses, sign extended. */
41: #undef POINTER_SIZE
42: #define POINTER_SIZE 32
43: #define POINTERS_EXTEND_UNSIGNED 0
44:
45: /* "long" is 32 bits. */
46: #undef LONG_TYPE_SIZE
47: #define LONG_TYPE_SIZE 32
48:
49: /* We can't do any debugging. */
50: #undef SDB_DEBUGGING_INFO
51: #undef DBX_DEBUGGING_INFO
52: #undef MIPS_DEBUGGING_INFO
53:
54: #include "winnt/win-nt.h"
55:
56: #undef ASM_FILE_START
57: #define ASM_FILE_START(FILE) \
58: { \
59: alpha_write_verstamp (FILE); \
60: fprintf (FILE, "\t.set noreorder\n"); \
61: fprintf (FILE, "\t.set volatile\n"); \
62: fprintf (FILE, "\t.set noat\n"); \
63: fprintf (FILE, "\t.globl\t__fltused\n"); \
64: ASM_OUTPUT_SOURCE_FILENAME (FILE, main_input_filename); \
65: }
66:
67: #undef LIB_SPEC
68: #define LIB_SPEC "%{mwindows:-subsystem windows -e _WinMainCRTStartup \
69: USER32.LIB%s GDI32.LIB%s COMDLG32.LIB%s WINSPOOL.LIB%s} \
70: %{!mwindows:-subsystem console -e _mainCRTStartup} \
71: %{mcrtmt:LIBCMT.LIB%s KERNEL32.LIB%s} %{!mcrtmt:LIBC.LIB%s KERNEL32.LIB%s} \
72: %{v}"
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.