1 /* Definitions of target machine for GCC,
2 for ARM with targetting the VXWorks run time environment.
3 Copyright (C) 1999, 2000, 2003, 2004 Free Software Foundation, Inc.
5 Contributed by: Mike Stump <mrs@wrs.com>
6 Brought up to date by CodeSourcery, LLC.
8 This file is part of GCC.
10 GCC is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2, or (at your option)
15 GCC is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with GCC; see the file COPYING. If not, write to
22 the Free Software Foundation, 59 Temple Place - Suite 330,
23 Boston, MA 02111-1307, USA. */
26 #define TARGET_OS_CPP_BUILTINS() \
28 builtin_define ("__vxworks"); \
30 builtin_define ("ARMEB"); \
32 builtin_define ("ARMEL"); \
35 builtin_define ("CPU=XSCALE"); \
37 builtin_define ("CPU=ARMARCH5"); \
41 builtin_define ("CPU=ARMARCH4_T"); \
43 builtin_define ("CPU=ARMARCH4"); \
49 "%{t4: -mlittle-endian -march=armv4 ; \
50 t4be: -mbig-endian -march=armv4 ; \
51 t4t: -mthumb -mthumb-interwork -mlittle-endian -march=armv4t ; \
52 t4tbe: -mthumb -mthumb-interwork -mbig-endian -march=armv4t ; \
53 t5: -mlittle-endian -march=armv5 ; \
54 t5be: -mbig-endian -march=armv5 ; \
55 t5t: -mthumb -mthumb-interwork -mlittle-endian -march=armv5 ; \
56 t5tbe: -mthumb -mthumb-interwork -mbig-endian -march=armv5 ; \
57 txscale: -mlittle-endian -mcpu=xscale ; \
58 txscalebe: -mbig-endian -mcpu=xscale ; \
61 /* The -Q options from svr4.h aren't understood and must be removed. */
64 "%{v:-V} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*}"
66 /* VxWorks does all the library stuff itself. */
70 /* VxWorks uses object files, not loadable images. make linker just
73 #define LINK_SPEC "-r"
75 /* VxWorks provides the functionality of crt0.o and friends itself. */
77 #define STARTFILE_SPEC ""
80 #define ENDFILE_SPEC ""
83 #define TARGET_VERSION fputs (" (ARM/VxWorks)", stderr);
85 /* There is no default multilib. */
86 #undef MULTILIB_DEFAULTS
89 #define ASM_FILE_START(STREAM) \
92 fprintf (STREAM, "%s Generated by GCC %s for ARM/VxWorks\n", \
93 ASM_COMMENT_START, version_string); \