targsys.h
来自「开放源码的编译器open watcom 1.6.0版的源代码」· C头文件 代码 · 共 130 行
H
130 行
/****************************************************************************
*
* Open Watcom Project
*
* Portions Copyright (c) 1983-2002 Sybase, Inc. All Rights Reserved.
*
* ========================================================================
*
* This file contains Original Code and/or Modifications of Original
* Code as defined in and that are subject to the Sybase Open Watcom
* Public License version 1.0 (the 'License'). You may not use this file
* except in compliance with the License. BY USING THIS FILE YOU AGREE TO
* ALL TERMS AND CONDITIONS OF THE LICENSE. A copy of the License is
* provided with the Original Code and Modifications, and is also
* available at www.sybase.com/developer/opensource.
*
* The Original Code and all software distributed under the License are
* distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
* EXPRESS OR IMPLIED, AND SYBASE AND ALL CONTRIBUTORS HEREBY DISCLAIM
* ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR
* NON-INFRINGEMENT. Please see the License for the specific language
* governing rights and limitations under the License.
*
* ========================================================================
*
* Description: Definition of code generator targets.
*
****************************************************************************/
#ifndef _TARG_INCLUDED
#define _TARG_INCLUDED
/* target processors (_HOST) */
#define _TARG_IAPX86 1
#define _TARG_80386 2
#define _TARG_370 4
#define _TARG_PPC 8
#define _TARG_AXP 16
#define _TARG_MIPS 32
#define _TARG_INTEL (_TARG_80386|_TARG_IAPX86)
#define _TARG_RISC (_TARG_PPC|_TARG_AXP|_TARG_MIPS)
/* target character sets (_CSET) */
#define _TARG_ASCII 1
#define _TARG_EBCDIC 2
/* target word ordering (_MEMORY) */
#define _TARG_LOW_FIRST 1
#define _TARG_HIGH_FIRST 2
#include <deftarg.h>
#if _TARGET & _TARG_80386
#define _TARG_CSET _TARG_ASCII
#define _TARG_INTEGER 32
#define _TARG_IS_SEGMENTED 1
#define _TARG_MEMORY _TARG_LOW_FIRST
#define WD U4
#define SW I4
#define WORD_SIZE 4
#define REG_SIZE 4
#define T_WORD T_UINT_4
#define _PHAR_LAP
#elif _TARGET & _TARG_IAPX86
#define _TARG_CSET _TARG_ASCII
#define _TARG_INTEGER 16
#define _TARG_MEMORY _TARG_LOW_FIRST
#define _TARG_IS_SEGMENTED 1
#define WD U2
#define SW I2
#define WORD_SIZE 2
#define REG_SIZE 2
#define T_WORD T_UINT_2
#undef _PHAR_LAP
#elif _TARGET & _TARG_370
#define _TARG_CSET _TARG_EBCDIC
#define _TARG_INTEGER 32
#define _TARG_MEMORY _TARG_HIGH_FIRST
#define WD U4
#define SW I4
#define WORD_SIZE 4
#define REG_SIZE 4
#define T_WORD T_UINT_4
#elif _TARGET & _TARG_PPC
#define _TARG_CSET _TARG_ASCII
#define _TARG_INTEGER 32
#define _TARG_IS_SEGMENTED 0
#define _TARG_MEMORY _TARG_LOW_FIRST
#define WD U4
#define SW I4
#define WORD_SIZE 4
#define REG_SIZE 4
#define PAGE_SIZE 4096 /* for stack crawling */
#define T_WORD T_UINT_4
#define STACK_ALIGNMENT 16
#define STACK_HEADER_SIZE 24
#elif _TARGET & _TARG_MIPS
#define _TARG_CSET _TARG_ASCII
#define _TARG_INTEGER 32
#define _TARG_IS_SEGMENTED 0
#define _TARG_MEMORY _TARG_LOW_FIRST
#define WD U4
#define SW I4
#define WORD_SIZE 4
#define REG_SIZE 4
#define PAGE_SIZE 4096 /* for stack crawling */
#define T_WORD T_UINT_4
#define STACK_ALIGNMENT 16
#define STACK_HEADER_SIZE 24
#elif _TARGET & _TARG_AXP
#define _TARG_CSET _TARG_ASCII
#define _TARG_INTEGER 32
#define _TARG_IS_SEGMENTED 0
#define _TARG_MEMORY _TARG_LOW_FIRST
#define WD U4
#define SW I4
#define WORD_SIZE 4
#define REG_SIZE 8
#define PAGE_SIZE 4096 /* for stack crawling */
#define T_WORD T_UINT_4
#define STACK_ALIGNMENT 16
#else
#error Unknown target processor!
#endif
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?