tc-arc.h revision 89857
1289177Speter/* tc-arc.h - Macros and type defines for the ARC. 2289177Speter Copyright 1994, 1995, 1997, 2000, 2001 Free Software Foundation, Inc. 3289177Speter Contributed by Doug Evans (dje@cygnus.com). 4289177Speter 5289177Speter This file is part of GAS, the GNU Assembler. 6289177Speter 7289177Speter GAS is free software; you can redistribute it and/or modify 8289177Speter it under the terms of the GNU General Public License as 9289177Speter published by the Free Software Foundation; either version 2, 10289177Speter or (at your option) any later version. 11289177Speter 12289177Speter GAS is distributed in the hope that it will be useful, but 13289177Speter WITHOUT ANY WARRANTY; without even the implied warranty of 14289177Speter MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See 15289177Speter the GNU General Public License for more details. 16289177Speter 17289177Speter You should have received a copy of the GNU General Public License 18289177Speter along with GAS; see the file COPYING. If not, write to the Free 19289177Speter Software Foundation, 59 Temple Place - Suite 330, Boston, MA 20289177Speter 02111-1307, USA. */ 21289177Speter 22289177Speter#define TC_ARC 1 23289177Speter 24289177Speter#define TARGET_BYTES_BIG_ENDIAN 0 25289177Speter 26289177Speter#define LOCAL_LABELS_FB 1 27289177Speter 28289177Speter#define TARGET_ARCH bfd_arch_arc 29289177Speter 30289177Speter#define DIFF_EXPR_OK 31289177Speter#define REGISTER_PREFIX '%' 32289177Speter 33289177Speter#ifdef LITTLE_ENDIAN 34289177Speter#undef LITTLE_ENDIAN 35289177Speter#endif 36289177Speter 37289177Speter#ifdef BIG_ENDIAN 38289177Speter#undef BIG_ENDIAN 39289177Speter#endif 40289177Speter 41289177Speter#define LITTLE_ENDIAN 1234 42289177Speter 43289177Speter#define BIG_ENDIAN 4321 44289177Speter 45289177Speter/* The endianness of the target format may change based on command 46289177Speter line arguments. */ 47289177Speterextern const char *arc_target_format; 48289177Speter#define DEFAULT_TARGET_FORMAT "elf32-littlearc" 49289177Speter#define TARGET_FORMAT arc_target_format 50289177Speter#define DEFAULT_BYTE_ORDER LITTLE_ENDIAN 51289177Speter 52289177Speter#define WORKING_DOT_WORD 53289177Speter 54289177Speter#define LISTING_HEADER "ARC GAS " 55289177Speter 56289177Speter/* The ARC needs to parse reloc specifiers in .word. */ 57289177Speter 58289177Speterextern void arc_parse_cons_expression PARAMS ((struct expressionS *, unsigned)); 59289177Speter#define TC_PARSE_CONS_EXPRESSION(EXP, NBYTES) \ 60289177Speterarc_parse_cons_expression (EXP, NBYTES) 61289177Speter 62289177Speterextern void arc_cons_fix_new PARAMS ((struct frag *, int, int, struct expressionS *)); 63289177Speter#define TC_CONS_FIX_NEW(FRAG, WHERE, NBYTES, EXP) \ 64289177Speterarc_cons_fix_new (FRAG, WHERE, NBYTES, EXP) 65289177Speter 66289177Speter#define DWARF2_LINE_MIN_INSN_LENGTH 4 67289177Speter