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

📄 mn10200.h

📁 gcc-2.95.3 Linux下最常用的C编译器
💻 H
📖 第 1 页 / 共 3 页
字号:
#define STACK_GROWS_DOWNWARD/* Define this if the nominal address of the stack frame   is at the high-address end of the local variables;   that is, each additional local variable allocated   goes at a more negative offset in the frame.  */#define FRAME_GROWS_DOWNWARD/* Offset within stack frame to start allocating local variables at.   If FRAME_GROWS_DOWNWARD, this is the offset to the END of the   first local allocated.  Otherwise, it is the offset to the BEGINNING   of the first local allocated.  */#define STARTING_FRAME_OFFSET 0/* Offset of first parameter from the argument pointer register value.  *//* Is equal to the size of the saved fp + pc, even if an fp isn't   saved since the value is used before we know.  */#define FIRST_PARM_OFFSET(FNDECL) (current_function_needs_context ? 8 : 4)/* Specify the registers used for certain standard purposes.   The values of these macros are register numbers.  *//* Register to use for pushing function arguments.  */#define STACK_POINTER_REGNUM 7/* Base register for access to local variables of the function.  */#define FRAME_POINTER_REGNUM 6/* Base register for access to arguments of the function.  */#define ARG_POINTER_REGNUM 6/* Register in which static-chain is passed to a function.  */#define STATIC_CHAIN_REGNUM 4/* Value should be nonzero if functions must have frame pointers.   Zero means the frame pointer need not be set up (and parms   may be accessed via the stack pointer) in functions that seem suitable.   This is computed in `reload', in reload1.c.   We allow frame pointers to be eliminated when not having one will   not interfere with debugging.  */#define ACCUMULATE_OUTGOING_ARGS#define FRAME_POINTER_REQUIRED 0#define CAN_DEBUG_WITHOUT_FP/* Store in the variable DEPTH the initial difference between the   frame pointer reg contents and the stack pointer reg contents,   as of the start of the function body.  This depends on the layout   of the fixed parts of the stack frame and on how registers are saved.  */#define INITIAL_FRAME_POINTER_OFFSET(DEPTH) (DEPTH) = total_frame_size()/* Various type size information.   The mn10200 has a limited number of small registers.  Sizes of basic   data types are adjusted accordingly.  */#define SHORT_TYPE_SIZE         16#define INT_TYPE_SIZE           16#define LONG_TYPE_SIZE          32#define LONG_LONG_TYPE_SIZE     32#define FLOAT_TYPE_SIZE         32#define DOUBLE_TYPE_SIZE        32#define LONG_DOUBLE_TYPE_SIZE   DOUBLE_TYPE_SIZE/* Any size less than 64bits will work; but a smarter definition   can make G++ code smaller and faster.  Most operations on the   mn10200 occur on 16bit hunks, so the best size for a boolean   is 16bits.  */#define BOOL_TYPE_SIZE		16/* The difference of two pointers must be at least 24bits since pointers   are 24bits; however, no basic data type is 24bits, so we have to round   up to a 32bits for the difference of pointers.  */#undef SIZE_TYPE#undef PTRDIFF_TYPE#define SIZE_TYPE "long unsigned int"#define PTRDIFF_TYPE "long unsigned int"/* Note sizeof (WCHAR_TYPE) must be equal to the value of WCHAR_TYPE_SIZE!  */#undef WCHAR_TYPE#define WCHAR_TYPE "int"#undef WCHAR_TYPE_SIZE#define WCHAR_TYPE_SIZE BITS_PER_WORD#define MAX_FIXED_MODE_SIZE     32/* A guess for the MN10200.  */#define PROMOTE_PROTOTYPES 1/* Value is the number of bytes of arguments automatically   popped when returning from a subroutine call.   FUNDECL is the declaration node of the function (as a tree),   FUNTYPE is the data type of the function (as a tree),   or for a library call it is an identifier node for the subroutine name.   SIZE is the number of bytes of arguments passed on the stack.  */#define RETURN_POPS_ARGS(FUNDECL,FUNTYPE,SIZE) 0/* 1 if N is a possible register number for function argument passing.  */#define FUNCTION_ARG_REGNO_P(N) ((N) <= 1)/* Define a data type for recording info about an argument list   during the scan of that argument list.  This data type should   hold all necessary information about the function itself   and about the args processed so far, enough to enable macros   such as FUNCTION_ARG to determine where the next arg should go.  */#define CUMULATIVE_ARGS struct cum_argstruct cum_arg { int nbytes; };/* Initialize a variable CUM of type CUMULATIVE_ARGS   for a call to a function whose data type is FNTYPE.   For a library call, FNTYPE is 0.   On the MN10200, the offset starts at 0.  */#define INIT_CUMULATIVE_ARGS(CUM,FNTYPE,LIBNAME,INDIRECT)	\ ((CUM).nbytes = 0)/* Update the data in CUM to advance over an argument   of mode MODE and data type TYPE.   (TYPE is null for libcalls where that information may not be available.)  */#define FUNCTION_ARG_ADVANCE(CUM, MODE, TYPE, NAMED)	\ ((CUM).nbytes += ((MODE) != BLKmode			\	? (MODE) == PSImode ? 2 :			\	    (GET_MODE_SIZE (MODE) + UNITS_PER_WORD - 1) & -UNITS_PER_WORD \	: (int_size_in_bytes (TYPE) + UNITS_PER_WORD - 1) & -UNITS_PER_WORD))/* Define where to put the arguments to a function.   Value is zero to push the argument on the stack,   or a hard register in which to store the argument.   MODE is the argument's machine mode.   TYPE is the data type of the argument (as a tree).    This is null for libcalls where that information may    not be available.   CUM is a variable of type CUMULATIVE_ARGS which gives info about    the preceding args and about the function being called.   NAMED is nonzero if this argument is a named parameter    (otherwise it is an extra parameter matching an ellipsis).  */extern struct rtx_def *function_arg();#define FUNCTION_ARG(CUM, MODE, TYPE, NAMED) \  function_arg (&CUM, MODE, TYPE, NAMED)/* For "large" items, we pass them by invisible reference, and the   callee is responsible for copying the data item if it might be   modified.  */#define FUNCTION_ARG_PASS_BY_REFERENCE(CUM, MODE, TYPE, NAMED)		\  ((TYPE) && int_size_in_bytes (TYPE) > 8) #define FUNCTION_ARG_CALLEE_COPIES(CUM, MODE, TYPE, NAMED) \  ((TYPE) && int_size_in_bytes (TYPE) > 8)/* Define how to find the value returned by a function.   VALTYPE is the data type of the value (as a tree).   If the precise function being called is known, FUNC is its FUNCTION_DECL;   otherwise, FUNC is 0.   */   #define FUNCTION_VALUE(VALTYPE, FUNC) \  gen_rtx (REG, TYPE_MODE (VALTYPE), TYPE_MODE (VALTYPE) == PSImode ? 4 : 0)/* Define how to find the value returned by a library function   assuming the value has mode MODE.  */#define LIBCALL_VALUE(MODE) gen_rtx (REG, MODE, (MODE) == PSImode ? 4 : 0)/* 1 if N is a possible register number for a function value.  */#define FUNCTION_VALUE_REGNO_P(N) ((N) == 0 || (N) == 4)/* Return values > 8 bytes in length in memory.  */#define DEFAULT_PCC_STRUCT_RETURN 0#define RETURN_IN_MEMORY(TYPE)  \  (int_size_in_bytes (TYPE) > 8 || TYPE_MODE (TYPE) == BLKmode)/* Register in which address to store a structure value   is passed to a function.  On the MN10200 it's passed as   the first parameter.  */#define STRUCT_VALUE 0/* EXIT_IGNORE_STACK should be nonzero if, when returning from a function,   the stack pointer does not matter.  The value is tested only in   functions that have frame pointers.   No definition is equivalent to always zero.  */#define EXIT_IGNORE_STACK 1/* Output assembler code to FILE to increment profiler label # LABELNO   for profiling a function entry.   ?!? Profiling is not currently supported.  */#define FUNCTION_PROFILER(FILE, LABELNO) ;/* Yes, we actually support trampolines on this machine, even though   nobody is likely to ever use them.  */#define TRAMPOLINE_TEMPLATE(FILE)			\  do {							\    fprintf (FILE, "\t.byte 0xfd\n");			\    fprintf (FILE, "\t.byte 0x00\n");			\    fprintf (FILE, "\t.byte 0x00\n");			\    fprintf (FILE, "\tmov (a3),a0\n");			\    fprintf (FILE, "\tadd -4,a3\n");			\    fprintf (FILE, "\tmov a0,(0,a3)\n");		\    fprintf (FILE, "\tmov (21,a0),a0\n");		\    fprintf (FILE, "\tmov a0,(4,a3)\n");		\    fprintf (FILE, "\tmov (0,a3),a0\n");		\    fprintf (FILE, "\tmov (17,a0),a0\n");		\    fprintf (FILE, "\tadd 4,a3\n");			\    fprintf (FILE, "\trts\n");				\    fprintf (FILE, "\t.long 0\n");			\    fprintf (FILE, "\t.long 0\n");			\  } while (0)/* Length in units of the trampoline for entering a nested function.  */#define TRAMPOLINE_SIZE 0x1c/* Emit RTL insns to initialize the variable parts of a trampoline.   FNADDR is an RTX for the address of the function's pure code.   CXT is an RTX for the static chain value for the function.  */#define INITIALIZE_TRAMPOLINE(TRAMP, FNADDR, CXT)			\{									\  emit_move_insn (gen_rtx (MEM, PSImode, plus_constant ((TRAMP), 20)),  \		  (CXT));						\  emit_move_insn (gen_rtx (MEM, PSImode, plus_constant ((TRAMP), 24)),  \		  (FNADDR));						\}/* A C expression whose value is RTL representing the value of the return   address for the frame COUNT steps up from the current frame.  */#define RETURN_ADDR_RTX(COUNT, FRAME)   \  ((COUNT == 0)                         \   ? gen_rtx (MEM, Pmode, frame_pointer_rtx) \   : (rtx) 0)/* Addressing modes, and classification of registers for them.  *//* 1 if X is an rtx for a constant that is a valid address.  */#define CONSTANT_ADDRESS_P(X)   CONSTANT_P (X)/* Extra constraints.  */#define OK_FOR_R(OP) \   (GET_CODE (OP) == MEM					\    && GET_MODE (OP) == QImode					\    && REG_P (XEXP (OP, 0))) /* Q is used for sp + <something> in the {zero,sign}_extendpsisi2 patterns.  */#define EXTRA_CONSTRAINT(OP, C) \ ((C) == 'R' ? OK_FOR_R (OP) : \  (C) == 'S' ? GET_CODE (OP) == SYMBOL_REF : \  (C) == 'Q' ? GET_CODE (OP) == PLUS : 0)/* Maximum number of registers that can appear in a valid memory address.  */#define MAX_REGS_PER_ADDRESS 2/* The macros REG_OK_FOR..._P assume that the arg is a REG rtx   and check its validity for a certain class.   We have two alternate definitions for each of them.   The usual definition accepts all pseudo regs; the other rejects   them unless they have been allocated suitable hard regs.   The symbol REG_OK_STRICT causes the latter definition to be used.   Most source files want to accept pseudo regs in the hope that   they will get allocated to the class that the insn wants them to be in.   Source files for reload pass need to be strict.   After reload, it makes no difference, since pseudo regs have   been eliminated by then.  */#ifndef REG_OK_STRICT/* Nonzero if X is a hard reg that can be used as an index   or if it is a pseudo reg.  */#define REG_OK_FOR_INDEX_P(X)  \  (((REGNO (X) >= 0 && REGNO(X) <= 3) || REGNO (X) >= FIRST_PSEUDO_REGISTER))/* Nonzero if X is a hard reg that can be used as a base reg   or if it is a pseudo reg.  */#define REG_OK_FOR_BASE_P(X) \  (((REGNO (X) >= 4 && REGNO(X) <= 8) || REGNO (X) >= FIRST_PSEUDO_REGISTER))#else/* Nonzero if X is a hard reg that can be used as an index.  */#define REG_OK_FOR_INDEX_P(X) \  REGNO_OK_FOR_INDEX_P (REGNO (X))/* Nonzero if X is a hard reg that can be used as a base reg.  */#define REG_OK_FOR_BASE_P(X) \  REGNO_OK_FOR_BASE_P (REGNO (X))#endif/* GO_IF_LEGITIMATE_ADDRESS recognizes an RTL expression   that is a valid memory address for an instruction.   The MODE argument is the machine mode for the MEM expression   that wants to use this address.   We used to allow reg+reg addresses for QImode and HImode; however,   they tended to cause the register allocator to run out of registers.   Basically, an indexed load/store always keeps 2 data and one address   register live, which is just too many for this machine.   The other macros defined here are used only in GO_IF_LEGITIMATE_ADDRESS,   except for CONSTANT_ADDRESS_P which is actually machine-independent.  *//* Accept either REG or SUBREG where a register is valid.  */  #define RTX_OK_FOR_BASE_P(X)					\  ((REG_P (X) && REG_OK_FOR_BASE_P (X))				\   || (GET_CODE (X) == SUBREG && REG_P (SUBREG_REG (X))		\       && REG_OK_FOR_BASE_P (SUBREG_REG (X))))#define GO_IF_LEGITIMATE_ADDRESS(MODE, X, ADDR)    	\{							\  if ((MODE != PSImode) && CONSTANT_ADDRESS_P (X))	\    goto ADDR;						\  if (RTX_OK_FOR_BASE_P (X))				\    goto ADDR;						\  if (GET_CODE (X) == PLUS)				\    {							\      rtx base = 0, index = 0;				\      if (RTX_OK_FOR_BASE_P (XEXP (X, 0)))		\	base = XEXP (X, 0), index = XEXP (X, 1);	\      if (RTX_OK_FOR_BASE_P (XEXP (X, 1)))		\	base = XEXP (X, 1), index = XEXP (X, 0);	\      if (base != 0 && index != 0)			\	{						\	  if (GET_CODE (index) == CONST_INT)		\	    goto ADDR;					\	}						\    }							\}/* Try machine-dependent ways of modifying an illegitimate address   to be legitimate.  If we find one, return the new, valid address.   This macro is used in only one place: `memory_address' in explow.c.   OLDX is the address as it was before break_out_memory_refs was called.   In some cases it is useful to look at this to decide what needs to be done.   MODE and WIN are passed so that this macro can use   GO_IF_LEGITIMATE_ADDRESS.   It is always safe for this macro to do nothing.  It exists to recognize   opportunities to optimize the output.   */

⌨️ 快捷键说明

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