00001 /* Definitions of target machine for GNU compiler, for DEC Alpha 00002 running Windows/NT. 00003 Copyright (C) 1995, 1996, 1998, 1999 Free Software Foundation, Inc. 00004 00005 Derived from code 00006 Contributed by Richard Kenner (kenner@vlsi1.ultra.nyu.edu) 00007 00008 Donn Terry, Softway Systems, Inc. 00009 00010 This file contains the code-generation stuff common to the 32-bit 00011 versions of the DEC/Compaq Alpha architecture. It is shared by 00012 Interix and NT/Win32 ports. It should not contain compile-time 00013 or run-time dependent environment values (such as compiler options 00014 or anything containing a file or pathname.) 00015 00016 This file is part of GNU CC. 00017 00018 GNU CC is free software; you can redistribute it and/or modify 00019 it under the terms of the GNU General Public License as published by 00020 the Free Software Foundation; either version 2, or (at your option) 00021 any later version. 00022 00023 GNU CC is distributed in the hope that it will be useful, 00024 but WITHOUT ANY WARRANTY; without even the implied warranty of 00025 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00026 GNU General Public License for more details. 00027 00028 You should have received a copy of the GNU General Public License 00029 along with GNU CC; see the file COPYING. If not, write to 00030 the Free Software Foundation, 59 Temple Place - Suite 330, 00031 Boston, MA 02111-1307, USA. */ 00032 00033 #undef TARGET_ABI_WINDOWS_NT 00034 #define TARGET_ABI_WINDOWS_NT 1 00035 00036 /* WinNT (and thus Interix) use unsigned int */ 00037 #define SIZE_TYPE "unsigned int" 00038 00039 /* Pointer is 32 bits but the hardware has 64-bit addresses, sign extended. */ 00040 #undef POINTER_SIZE 00041 #define POINTER_SIZE 32 00042 #define POINTERS_EXTEND_UNSIGNED 0 00043 00044 /* We don't change Pmode to the "obvious" SI mode... the above appears 00045 to affect the in-memory size; we want the registers to stay DImode 00046 to match the md file */ 00047 00048 /* "long" is 32 bits. */ 00049 #undef LONG_TYPE_SIZE 00050 #define LONG_TYPE_SIZE 32 00051 00052 00053 /* Output assembler code for a block containing the constant parts 00054 of a trampoline, leaving space for the variable parts. 00055 00056 The trampoline should set the static chain pointer to value placed 00057 into the trampoline and should branch to the specified routine. */ 00058 00059 #undef TRAMPOLINE_TEMPLATE 00060 #define TRAMPOLINE_TEMPLATE(FILE) \ 00061 { \ 00062 fprintf (FILE, "\tbr $27,$LTRAMPP\n"); \ 00063 fprintf (FILE, "$LTRAMPP:\n\tldl $1,12($27)\n"); \ 00064 fprintf (FILE, "\tldl $27,16($27)\n"); \ 00065 fprintf (FILE, "\tjmp $31,($27),0\n"); \ 00066 fprintf (FILE, "\t.long 0,0\n"); \ 00067 } 00068 00069 /* Length in units of the trampoline for entering a nested function. */ 00070 00071 #undef TRAMPOLINE_SIZE 00072 #define TRAMPOLINE_SIZE 24 00073 00074 /* The alignment of a trampoline, in bits. */ 00075 00076 #undef TRAMPOLINE_ALIGNMENT 00077 #define TRAMPOLINE_ALIGNMENT 32 00078 00079 /* Emit RTL insns to initialize the variable parts of a trampoline. 00080 FNADDR is an RTX for the address of the function's pure code. 00081 CXT is an RTX for the static chain value for the function. */ 00082 00083 #undef INITIALIZE_TRAMPOLINE 00084 #define INITIALIZE_TRAMPOLINE(TRAMP, FNADDR, CXT) \ 00085 alpha_initialize_trampoline (TRAMP, FNADDR, CXT, 20, 16, 12)
1.5.6