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

📄 mot3300.h

📁 linux下的gcc编译器
💻 H
📖 第 1 页 / 共 2 页
字号:
    if ((PTR)[sp] > ' ' && ! ((PTR)[sp] & 0x80) && (PTR)[sp] != '\\')	\      { lp += 3;						\	fprintf ((FILE), "'%c", (PTR)[sp]); }			\    else							\      { lp += 5;						\	fprintf ((FILE), "0x%x", (PTR)[sp]); }			\    if (++sp < limit)						\      {	if (lp > 60)						\	  { lp = 0;						\	    fprintf ((FILE), "\n%s", ASCII_DATA_ASM_OP); }	\	else							\	  putc (',', (FILE));					\	goto loop; }						\    putc ('\n', (FILE)); } while (0)#endif /* USE_GAS */#ifndef USE_GAS/* Output a float value (represented as a C double) as an immediate operand.   This macro is a 68k-specific macro.  */#undef ASM_OUTPUT_FLOAT_OPERAND#define ASM_OUTPUT_FLOAT_OPERAND(CODE,FILE,VALUE)			\ do { long l;								\      REAL_VALUE_TO_TARGET_SINGLE (r, l);				\      /* Use hex representation even if CODE is f.  as needs it.  */	\      fprintf ((FILE), "&0x%lx", l);					\    } while (0)/* Output a double value (represented as a C double) as an immediate operand.   This macro is a 68k-specific macro.  */#undef ASM_OUTPUT_DOUBLE_OPERAND#define ASM_OUTPUT_DOUBLE_OPERAND(FILE,VALUE)				\ do { long l[2];							\      REAL_VALUE_TO_TARGET_DOUBLE (VALUE, l);				\      fprintf ((FILE), "&0x%lx%08lx", l[0], l[1]);			\    } while (0)#endif /* USE_GAS *//* 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'.  */#undef ASM_GENERATE_INTERNAL_LABEL#define ASM_GENERATE_INTERNAL_LABEL(LABEL, PREFIX, NUM)	\  sprintf ((LABEL), "%s%s%ld", LOCAL_LABEL_PREFIX, (PREFIX), (long)(NUM))/* This is how to output an internal numbered label where   PREFIX is the class of label and NUM is the number within the class.  */#undef ASM_OUTPUT_INTERNAL_LABEL#define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM)	\    asm_fprintf (FILE, "%L%s%d:\n", PREFIX, NUM)/* The prefix to add to user-visible assembler symbols.  */#undef USER_LABEL_PREFIX#define USER_LABEL_PREFIX ""/* This is how to output an element of a case-vector that is absolute.   (The 68000 does not use such vectors,   but we must define this macro anyway.)  *//* The L after the local prefix is the "L" prefix for the normal labels   generated by gcc; why are ASM_OUTPUT_ADDR_VEC_ELT and   ASM_OUTPUT_ADDR_DIFF_ELT not called with a PREFIX parameter, like   ASM_OUTPUT_INTERNAL_LABEL ? */#undef ASM_OUTPUT_ADDR_VEC_ELT#define ASM_OUTPUT_ADDR_VEC_ELT(FILE, VALUE)	\    asm_fprintf (FILE, "%s%LL%d\n", integer_asm_op (4, TRUE), (VALUE))/* This is how to output an element of a case-vector that is relative.  */#undef ASM_OUTPUT_ADDR_DIFF_ELT#define ASM_OUTPUT_ADDR_DIFF_ELT(FILE, BODY, VALUE, REL)	\    asm_fprintf (FILE, "\t%s %LL%d-%LL%d\n",			\		 integer_asm_op (2, TRUE), (VALUE), (REL))#ifndef USE_GAS#define ASM_OUTPUT_CASE_LABEL(FILE,PREFIX,NUM,TABLE)			\    asm_fprintf (FILE, "\tswbeg &%d\n%L%s%d:\n",			\	     XVECLEN (PATTERN (TABLE), 1), (PREFIX), (NUM))/* sysV68 as cannot handle LD%n(%pc,%reg) */ #define SGS_NO_LI/* labelno is not used here */#define ASM_OUTPUT_CASE_FETCH(file, labelno, regname)\	asm_fprintf (file, "12(%Rpc,%s.", regname)#define ASM_RETURN_CASE_JUMP				\  do {							\    if (TARGET_5200)					\      {							\	if (ADDRESS_REG_P (operands[0]))		\	  return "jmp 8(%%pc,%0.l)";			\	else						\	  return "ext%.l %0\n\tjmp 8(%%pc,%0.l)";	\      }							\    else						\      return "jmp 8(%%pc,%0.w)";			\  } while (0)	     #else /* USE_GAS *//* labelno is not used here */#define ASM_OUTPUT_CASE_FETCH(file, labelno, regname)\	asm_fprintf (file, "%Rpc@(6,%s:", regname)#define ASM_RETURN_CASE_JUMP return "jmp %%pc@(2,%0:w)"#endif /* USE_GAS */#ifndef USE_GAS/* Translate some opcodes to fit the sysV68 assembler syntax.  *//* The opcodes fdmov and fsmov are guesses.  *//* cliffm@netcom.com says no need for .w suffix on jumps.  */#undef ASM_OUTPUT_OPCODE#define ASM_OUTPUT_OPCODE(FILE, PTR)			\{ if ((PTR)[0] == 'j' && (PTR)[1] == 'b')		\    { ++(PTR);						\      while (*(PTR) != ' ')				\	{ putc (*(PTR), (FILE)); ++(PTR); }		\    }							\  else if ((PTR)[0] == 's')				\    {							\      if (!strncmp ((PTR), "swap", 4))			\	{ fprintf ((FILE), "swap.w"); (PTR) += 4; }	\    }							\  else if ((PTR)[0] == 'f')				\    {							\      if (!strncmp ((PTR), "fmove", 5))			\	{ fprintf ((FILE), "fmov"); (PTR) += 5; }	\      else if (!strncmp ((PTR), "f%$move", 7))		\	{ if (TARGET_68040_ONLY)			\	    { fprintf ((FILE), "fsmov"); (PTR) += 7; }	\	  else						\	    { fprintf ((FILE), "fmov"); (PTR) += 7; } }	\      else if (!strncmp ((PTR), "f%&move", 7))		\	{ if (TARGET_68040_ONLY)			\	    { fprintf ((FILE), "fdmov"); (PTR) += 7; }	\	  else						\	    { fprintf ((FILE), "fmov"); (PTR) += 7; } }	\      else if (!strncmp ((PTR), "ftst", 4))		\	{ fprintf ((FILE), "ftest"); (PTR) += 4; }	\      else if (!strncmp ((PTR), "fbne", 4))		\	{ fprintf ((FILE), "fbneq"); (PTR) += 4; }	\      else if (!strncmp ((PTR), "fsne", 4))		\	{ fprintf ((FILE), "fsneq"); (PTR) += 4; }	\    }							\/* MOVE, MOVEA, MOVEQ, MOVEC ==> MOV	*/		\  else if ((PTR)[0] == 'm' && (PTR)[1] == 'o'		\	   && (PTR)[2] == 'v' && (PTR)[3] == 'e')	\    { fprintf ((FILE), "mov"); (PTR) += 4;		\       if ((PTR)[0] == 'q' || (PTR)[0] == 'a'		\	   || (PTR)[0] == 'c') (PTR)++; }		\/* SUB, SUBQ, SUBA, SUBI ==> SUB */			\  else if ((PTR)[0] == 's' && (PTR)[1] == 'u' 		\	   && (PTR)[2] == 'b')				\    { fprintf ((FILE), "sub"); (PTR) += 3;		\       if ((PTR)[0] == 'q' || (PTR)[0] == 'i'	 	\	   || (PTR)[0] == 'a') (PTR)++; }		\/* CMP, CMPA, CMPI, CMPM ==> CMP	*/		\  else if ((PTR)[0] == 'c' && (PTR)[1] == 'm'		\	   && (PTR)[2] == 'p')				\    { fprintf ((FILE), "cmp"); (PTR) += 3;		\       if ((PTR)[0] == 'a' || (PTR)[0] == 'i'	 	\	   || (PTR)[0] == 'm') (PTR)++; }		\}#endif /* USE_GAS *//* phdm@info.ucl.ac.be says to pass SIZE, not ROUNDED.  *//* This says how to output an assembler line   to define a global common symbol.  */#undef ASM_OUTPUT_COMMON#ifndef USE_GAS#define ASM_OUTPUT_COMMON(FILE, NAME, SIZE, ROUNDED)  \( fputs ("\tcomm ", (FILE)),			\  assemble_name ((FILE), (NAME)),		\  fprintf ((FILE), ",%u\n", (SIZE)))#else /* USE_GAS */#define ASM_OUTPUT_COMMON(FILE, NAME, SIZE, ROUNDED)  \( fputs ("\t.comm ", (FILE)),			\  assemble_name ((FILE), (NAME)),		\  fprintf ((FILE), ",%u\n", (SIZE)))#endif /* USE_GAS *//* This says how to output an assembler line   to define a local common symbol.  */#undef ASM_OUTPUT_LOCAL#ifndef USE_GAS#define ASM_OUTPUT_LOCAL(FILE, NAME, SIZE, ROUNDED)  \( fputs ("\tlcomm ", (FILE)),			\  assemble_name ((FILE), (NAME)),		\  fprintf ((FILE), ",%u\n", (SIZE)))#else /* USE_GAS */#define ASM_OUTPUT_LOCAL(FILE, NAME, SIZE, ROUNDED)  \( fputs ("\t.lcomm ", (FILE)),			\  assemble_name ((FILE), (NAME)),		\  fprintf ((FILE), ",%u\n", (SIZE)))#endif /* USE_GAS */#ifndef USE_GAS/* Override usual definitions of SDB output macros.   These definitions differ only in the absence of the period   at the beginning of the name of the directive   and in the use of `~' as the symbol for the current location.  */#define PUT_SDB_SCL(a) fprintf(asm_out_file, "\tscl\t%d;", (a))#define PUT_SDB_INT_VAL(a) fprintf (asm_out_file, "\tval\t%d;", (a))#define PUT_SDB_VAL(a)				\( fputs ("\tval\t", asm_out_file),		\  output_addr_const (asm_out_file, (a)),	\  fputc (';', asm_out_file))#define PUT_SDB_DEF(a)				\do { fprintf (asm_out_file, "\tdef\t");	\     ASM_OUTPUT_LABELREF (asm_out_file, a); 	\     fprintf (asm_out_file, ";"); } while (0)#define PUT_SDB_PLAIN_DEF(a) fprintf(asm_out_file,"\tdef\t~%s;",a)#define PUT_SDB_ENDEF fputs("\tendef\n", asm_out_file)#define PUT_SDB_TYPE(a) fprintf(asm_out_file, "\ttype\t0%o;", a)#define PUT_SDB_SIZE(a) fprintf(asm_out_file, "\tsize\t%d;", a)#define PUT_SDB_START_DIM fprintf(asm_out_file, "\tdim\t")#define PUT_SDB_NEXT_DIM(a) fprintf(asm_out_file, "%d,", a)#define PUT_SDB_LAST_DIM(a) fprintf(asm_out_file, "%d;", a)#define PUT_SDB_TAG(a)				\do { fprintf (asm_out_file, "\ttag\t");	\     ASM_OUTPUT_LABELREF (asm_out_file, a);	\     fprintf (asm_out_file, ";"); } while (0)#define PUT_SDB_BLOCK_START(LINE)		\  fprintf (asm_out_file,			\	   "\tdef\t~bb;\tval\t~;\tscl\t100;\tline\t%d;\tendef\n",	\	   (LINE))#define PUT_SDB_BLOCK_END(LINE)			\  fprintf (asm_out_file,			\	   "\tdef\t~eb;\tval\t~;\tscl\t100;\tline\t%d;\tendef\n",	\	   (LINE))#define PUT_SDB_FUNCTION_START(LINE)		\  fprintf (asm_out_file,			\	   "\tdef\t~bf;\tval\t~;\tscl\t101;\tline\t%d;\tendef\n",	\	   (LINE))#define PUT_SDB_FUNCTION_END(LINE)		\  fprintf (asm_out_file,			\	   "\tdef\t~ef;\tval\t~;\tscl\t101;\tline\t%d;\tendef\n",	\	   (LINE))#define PUT_SDB_EPILOGUE_END(NAME)		\  fprintf (asm_out_file,			\	   "\tdef\t%s;\tval\t~;\tscl\t-1;\tendef\n",	\	   (NAME))#define SDB_GENERATE_FAKE(BUFFER, NUMBER) \  sprintf ((BUFFER), "~%dfake", (NUMBER));#endif /* USE_GAS *//* Define subroutines to call to handle multiply, divide, and remainder.   Use the subroutines that the sysV68's library provides.   The `*' prevents an underscore from being prepended by the compiler.  *//* The '*' is also used by INIT_CUMULATIVE_ARGS */#define DIVSI3_LIBCALL "*ldiv%%"#define UDIVSI3_LIBCALL "*uldiv%%"#define MODSI3_LIBCALL "*lrem%%"#define UMODSI3_LIBCALL "*ulrem%%"#define MULSI3_LIBCALL "*lmul%%"struct sysV68_cumulative_args	{	int	offset;	int	libcall;	};#undef CUMULATIVE_ARGS#define CUMULATIVE_ARGS struct sysV68_cumulative_args#undef INIT_CUMULATIVE_ARGS#define INIT_CUMULATIVE_ARGS(CUM,FNTYPE,LIBNAME,INDIRECT)	\do {(CUM).offset = 0;\(CUM).libcall = (LIBNAME) && (*XSTR((LIBNAME), 0) == '*');} while(0)#undef FUNCTION_ARG_ADVANCE#define FUNCTION_ARG_ADVANCE(CUM, MODE, TYPE, NAMED)	\ ((CUM).offset += ((MODE) != BLKmode			\	    ? (GET_MODE_SIZE (MODE) + 3) & ~3	\	    : (int_size_in_bytes (TYPE) + 3) & ~3))#undef FUNCTION_ARG#define FUNCTION_ARG(CUM, MODE, TYPE, NAMED) \(((CUM).libcall && (CUM).offset == 0) ? gen_rtx_REG ((MODE), 0)\: (TARGET_REGPARM && (CUM).offset < 8) ? gen_rtx_REG ((MODE), (CUM).offset / 4) : 0)#undef FUNCTION_ARG_PARTIAL_NREGS#define FUNCTION_ARG_PARTIAL_NREGS(CUM, MODE, TYPE, NAMED) \((TARGET_REGPARM && (CUM).offset < 8				\  && 8 < ((CUM).offset + ((MODE) == BLKmode			\		      ? int_size_in_bytes (TYPE)		\		      : GET_MODE_SIZE (MODE))))  		\ ? 2 - (CUM).offset / 4 : 0)#undef FUNCTION_ARG_REGNO_P#define FUNCTION_ARG_REGNO_P(N) (TARGET_68020 ? 0 : (N) == 0)/* manfred@lts.sel.alcatel.de: I believe that most delta machines are configured to have   a 6888[12] FPU for which we need to link -lm881 instead of -lm; define ALT_LIBM to   tell g++.c about that.  */#define ALT_LIBM	"-lm881"#if (TARGET_DEFAULT & MASK_68881)      /* The default configuration has a 6888[12] FPU.  */#define MATH_LIBRARY	"-lm881"#endif/* Currently we do not have the atexit() function,   so take that from libgcc2.c */#define NEED_ATEXIT 1#define EXIT_BODY	\  do								\    { 								\      __stop_monitor ();					\      _cleanup ();						\    } while (0)/* FINALIZE_TRAMPOLINE clears the instruction cache.  */#undef FINALIZE_TRAMPOLINE#define FINALIZE_TRAMPOLINE(TRAMP)	\  if (!TARGET_68040)			\    ;					\  else					\    emit_library_call (gen_rtx_SYMBOL_REF (Pmode, "__clear_insn_cache"), \		       0, VOIDmode, 0)

⌨️ 快捷键说明

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