⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 elxsi.h

📁 gcc编译工具没有什么特别
💻 H
📖 第 1 页 / 共 3 页
字号:
/* Nonzero if access to memory by bytes is slow and undesirable.  */#define SLOW_BYTE_ACCESS 0/* Define if shifts truncate the shift count   which implies one can omit a sign-extension or zero-extension   of a shift count.  *//* #define SHIFT_COUNT_TRUNCATED *//* Value is 1 if truncating an integer of INPREC bits to OUTPREC bits   is done just by pretending it is already truncated.  */#define TRULY_NOOP_TRUNCATION(OUTPREC, INPREC) 1/* Specify the machine mode that pointers have.   After generation of rtl, the compiler makes no further distinction   between pointers and any other objects of this machine mode.  */#define Pmode SImode/* A function address in a call instruction   is a byte address (for indexing purposes)   so give the MEM rtx a byte's mode.  */#define FUNCTION_MODE QImode/* Compute the cost of computing a constant rtl expression RTX   whose rtx-code is CODE.  The body of this macro is a portion   of a switch statement.  If the code is computed here,   return it with a return statement.  Otherwise, break from the switch.  */#define CONST_COSTS(RTX,CODE,OUTER_CODE) \  case CONST_INT:						\    /* Constant zero is super cheap due to clr instruction.  */	\    if (RTX == const0_rtx) return 0;				\    if ((unsigned) INTVAL (RTX) < 077) return 1;		\  case CONST:							\  case LABEL_REF:						\  case SYMBOL_REF:						\    return 3;							\  case CONST_DOUBLE:						\    return 5;/* * We can use the BSD C library routines for the gnulib calls that are * still generated, since that's what they boil down to anyways. *//* #define UDIVSI3_LIBCALL "*udiv" *//* #define UMODSI3_LIBCALL "*urem" *//* Tell final.c how to eliminate redundant test instructions.  *//* Here we define machine-dependent flags and fields in cc_status   (see `conditions.h').  No extra ones are needed for the vax.  *//* Store in cc_status the expressions   that the condition codes will describe   after execution of an instruction whose pattern is EXP.   Do not alter them if the instruction would not alter the cc's.  */#define NOTICE_UPDATE_CC(EXP, INSN) \	CC_STATUS_INIT;/* Control the assembler format that we output.  *//* Output the name of the file we are compiling.  */#define ASM_OUTPUT_SOURCE_FILENAME(STREAM, NAME) \  do {	fprintf (STREAM, "\t.file\t");			\	output_quoted_string (STREAM, NAME);		\	fprintf (STREAM, "\n");				\  } while (0)/* Output at beginning of assembler file.  */#define ASM_FILE_START(FILE) fprintf (FILE, "");/* Output to assembler file text saying following lines   may contain character constants, extra white space, comments, etc.  */#define ASM_APP_ON ""/* Output to assembler file text saying following lines   no longer contain unusual constructs.  */#define ASM_APP_OFF ""/* Output before read-only data.  */#define TEXT_SECTION_ASM_OP "\t.inst"/* Output before writable data.  */#define DATA_SECTION_ASM_OP "\t.var"/* How to refer to registers in assembler output.   This sequence is indexed by compiler's hard-register-number (see above).  */#define REGISTER_NAMES \{".r0", ".r1", ".r2", ".r3", ".r4", ".r5", ".r6", ".r7", ".r8", \ ".r9", ".r10", ".r11", ".r12", ".r13", ".r14", ".sp"}/* This is BSD, so it wants DBX format.  *//* #define DBX_DEBUGGING_INFO *//* How to renumber registers for dbx and gdb.   Vax needs no change in the numeration.  */#define DBX_REGISTER_NUMBER(REGNO) (REGNO)/* Do not break .stabs pseudos into continuations.  */#define DBX_CONTIN_LENGTH 0/* This is the char to use for continuation (in case we need to turn   continuation back on).  */#define DBX_CONTIN_CHAR '?'/* Don't use the `xsfoo;' construct in DBX output; this system   doesn't support it.  */#define DBX_NO_XREFS/* This is how to output the definition of a user-level label named NAME,   such as the label on a static function or variable NAME.  */#define ASM_OUTPUT_LABEL(FILE,NAME)	\  do { assemble_name (FILE, NAME); fputs (":\n", FILE); } while (0)/* This is how to output a command to make the user-level label named NAME   defined for reference from other files.  */#define ASM_GLOBALIZE_LABEL(FILE,NAME)	\  do { fputs ("\t.extdef\t", FILE); assemble_name (FILE, NAME); fputs ("\n", FILE);} while (0)/* The prefix to add to user-visible assembler symbols. */#define USER_LABEL_PREFIX ""/* This is how to output an internal numbered label where   PREFIX is the class of label and NUM is the number within the class.  */#define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM)	\  fprintf (FILE, ".%s%d:\n", PREFIX, NUM)/* This is how to store into the string LABEL   the symbol_ref name of an internal numbered label where   PREFIX is the class of label and NUM is the number within the class.   This is suitable for output with `assemble_name'.  */#define ASM_GENERATE_INTERNAL_LABEL(LABEL,PREFIX,NUM)	\  sprintf (LABEL, ".%s%d", PREFIX, NUM)/* This is how to output an assembler line defining a `double' constant.   It is .dfloat or .gfloat, depending.  */#define ASM_OUTPUT_DOUBLE(FILE,VALUE)  \{ union {double d; int i[2]; } tem;				\  tem.d = (VALUE);						\  fprintf (FILE, "\t.data\t%d{32}, %d{32}\n", tem.i[0], tem.i[1]); }/* This is how to output an assembler line defining a `float' constant.  */#define ASM_OUTPUT_FLOAT(FILE,VALUE)  \{ union {float f; int i; } tem;					\  tem.f = (VALUE);						\  fprintf (FILE, "\t.data %d{32}\n", tem.i); }/* This is how to output an assembler line defining an `int' constant.  */#define ASM_OUTPUT_INT(FILE,VALUE)  \( \	fprintf (FILE, "\t.data\t"),			\  output_addr_const (FILE, (VALUE)),		\  fprintf (FILE, "{32}\n"))#define ASM_OUTPUT_DOUBLE_INT(FILE,VALUE)			\{								\	fprintf (FILE, "\t.data\t");				\	if (GET_CODE (VALUE) == CONST_DOUBLE)			\	{							\		fprintf (FILE, "%d", CONST_DOUBLE_HIGH (VALUE)); \		fprintf (FILE, "{32}, ");			\		fprintf (FILE, "%d", CONST_DOUBLE_LOW (VALUE)); \		fprintf (FILE, "{32}\n");			\	} else if (GET_CODE (VALUE) == CONST_INT)		\	{							\		int val = INTVAL (VALUE);			\		fprintf (FILE, "%d", val < 0 ? -1 : 0);		\		fprintf (FILE, "{32}, ");			\		fprintf (FILE, "%d", val);			\		fprintf (FILE, "{32}\n");			\	} else abort ();					\}/* Likewise for `char' and `short' constants.  */#define ASM_OUTPUT_SHORT(FILE,VALUE)  \( fprintf (FILE, "\t.data\t"),			\  output_addr_const (FILE, (VALUE)),		\  fprintf (FILE, "{16}\n"))#define ASM_OUTPUT_CHAR(FILE,VALUE)  \( fprintf (FILE, "\t.data\t"),			\  output_addr_const (FILE, (VALUE)),		\  fprintf (FILE, "{8}\n"))/* This is how to output an assembler line for a numeric constant byte.  */#define ASM_OUTPUT_BYTE(FILE,VALUE)  \  fprintf (FILE, "\t.data\t%d{8}\n", (VALUE))/* This is how to output an insn to push a register on the stack.   It need not be very fast code.  */#define ASM_OUTPUT_REG_PUSH(FILE,REGNO)  \  fprintf (FILE, "\tsubi.64\t4,.sp\n\tst.32\t%s,[.sp]\n", reg_names[REGNO])/* This is how to output an insn to pop a register from the stack.   It need not be very fast code.  */#define ASM_OUTPUT_REG_POP(FILE,REGNO)  \  fprintf (FILE, "\tld.32\t%s,[.sp]\n\taddi.64\t4,.sp\n", reg_names[REGNO])/* This is how to output an element of a case-vector that is absolute.   (The Vax does not use such vectors,   but we must define this macro anyway.)  */#define ASM_OUTPUT_ADDR_VEC_ELT(FILE, VALUE)  \  fprintf (FILE, "\t.data .L%d{32}\n", VALUE)/* This is how to output an element of a case-vector that is relative.  */#define ASM_OUTPUT_ADDR_DIFF_ELT(FILE, BODY, VALUE, REL)  \  fprintf (FILE, "\t.data .L%d-.L%d{32}\n", VALUE, REL)/* This is how to output an assembler line   that says to advance the location counter   to a multiple of 2**LOG bytes.  */#define ASM_OUTPUT_ALIGN(FILE,LOG)  \  if (LOG!=0) fprintf (FILE, "\t.align\t%d\n", (LOG)); else 0/* This is how to output an assembler line   that says to advance the location counter by SIZE bytes.  */#define ASM_OUTPUT_SKIP(FILE,SIZE)  \  fprintf (FILE, "\t.space %d\n", (SIZE))/* This says how to output an assembler line   to define a global common symbol.  */#define ASM_OUTPUT_COMMON(FILE, NAME, SIZE, ROUNDED)  \( fputs (".comm ", (FILE)),			\  assemble_name ((FILE), (NAME)),		\  fprintf ((FILE), ",%d\n", (ROUNDED)))/* This says how to output an assembler line   to define a local common symbol.  */#define ASM_OUTPUT_LOCAL(FILE, NAME, SIZE, ROUNDED)  \( fputs (".bss ", (FILE)),			\  assemble_name ((FILE), (NAME)),		\  fprintf ((FILE), ",%d,%d\n", (SIZE),(ROUNDED)))/* Store in OUTPUT a string (made with alloca) containing   an assembler-name for a local static variable named NAME.   LABELNO is an integer which is different for each call.  */#define ASM_FORMAT_PRIVATE_NAME(OUTPUT, NAME, LABELNO)	\( (OUTPUT) = (char *) alloca (strlen ((NAME)) + 10),	\  sprintf ((OUTPUT), "%s.%d", (NAME), (LABELNO)))/* Define the parentheses used to group arithmetic operations   in assembler code.  */#define ASM_OPEN_PAREN "("#define ASM_CLOSE_PAREN ")"/* Define results of standard character escape sequences.  */#define TARGET_BELL 007#define TARGET_BS 010#define TARGET_TAB 011#define TARGET_NEWLINE 012#define TARGET_VT 013#define TARGET_FF 014#define TARGET_CR 015/* Print an instruction operand X on file FILE.   CODE is the code from the %-spec that requested printing this operand;   if `%z3' was used to print operand 3, then CODE is 'z'.  */#define PRINT_OPERAND(FILE, X, CODE)  \{ \  if (CODE == 'r' && GET_CODE (X) == MEM && GET_CODE (XEXP (X, 0)) == REG)							\    fprintf (FILE, "%s", reg_names[REGNO (XEXP (X, 0))]);		\  else if (GET_CODE (X) == REG)						\    fprintf (FILE, "%s", reg_names[REGNO (X)]);				\  else if (GET_CODE (X) == MEM)						\    output_address (XEXP (X, 0));					\  else \  { \	/*debug_rtx(X);*/ \	putc ('=', FILE); \	output_addr_const (FILE, X); } \   }/* Print a memory operand whose address is X, on file FILE.   This uses a function in output-vax.c.  */#define PRINT_OPERAND_ADDRESS(FILE, ADDR)  \ print_operand_address (FILE, ADDR)/* Functions used in the md file. */extern char *cmp_set();extern char *cmp_jmp();/* These are stubs, and have yet to bee written. */#define TRAMPOLINE_SIZE 26#define TRAMPOLINE_TEMPLATE(FILE)#define  INITIALIZE_TRAMPOLINE(TRAMP,FNADDR,CXT)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -