00001 //-*-c++-*- 00002 // ==================================================================== 00003 // ==================================================================== 00004 // 00005 // Module: opt_config.h 00006 // $Revision: 1.1.1.1 $ 00007 // $Date: 2005/10/21 19:00:00 $ 00008 // $Author: marcel $ 00009 // $Source: /proj/osprey/CVS/open64/osprey1.0/be/opt/opt_config.h,v $ 00010 // 00011 // ==================================================================== 00012 // 00013 // Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved. 00014 // 00015 // This program is free software; you can redistribute it and/or modify 00016 // it under the terms of version 2 of the GNU General Public License as 00017 // published by the Free Software Foundation. 00018 // 00019 // This program is distributed in the hope that it would be useful, but 00020 // WITHOUT ANY WARRANTY; without even the implied warranty of 00021 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00022 // 00023 // Further, this software is distributed without any warranty that it 00024 // is free of the rightful claim of any third person regarding 00025 // infringement or the like. Any license provided herein, whether 00026 // implied or otherwise, applies only to this software file. Patent 00027 // licenses, if any, provided herein do not apply to combinations of 00028 // this program with other software, or any other product whatsoever. 00029 // 00030 // You should have received a copy of the GNU General Public License 00031 // along with this program; if not, write the Free Software Foundation, 00032 // Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. 00033 // 00034 // Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pky, 00035 // Mountain View, CA 94043, or: 00036 // 00037 // http://www.sgi.com 00038 // 00039 // For further information regarding this notice, see: 00040 // 00041 // http://oss.sgi.com/projects/GenInfo/NoticeExplan 00042 // 00043 // ==================================================================== 00044 // ==================================================================== 00045 00046 00047 #ifndef opt_config_INCLUDED 00048 #define opt_config_INCLUDED "opt_config.h" 00049 #ifdef _KEEP_RCS_ID 00050 static char *opt_configrcs_id = opt_config_INCLUDED"$Revision$"; 00051 #endif /* _KEEP_RCS_ID */ 00052 00053 /* The -WOPT: group option flag variables are now in common/com: */ 00054 #include "config_wopt.h" 00055 00056 /********************************************************************* 00057 *** 00058 *** Anything that should not be seen outside of opt_config.c should 00059 *** be declared in this section. 00060 *** 00061 ********************************************************************* 00062 */ 00063 #ifdef OPT_INTERNAL 00064 00065 00066 /* used in yyy.c */ 00067 00068 #define MAX_STACK_SIZE 1024 00069 00070 #endif /* OPT_INTERNAL */ 00071 /********************************************************************* 00072 *** 00073 *** Anything that may be seen outside of opt_config.c should 00074 *** be declared in this section. 00075 *** 00076 ********************************************************************* 00077 */ 00078 00079 #define STR_NONE "none" 00080 00081 #define INPUT_PATH_LENGTH 512 00082 00083 /* #define USE_LARGE_CODEREP 1 comment out to flush out any problem */ 00084 00085 /* Default file extensions: */ 00086 #define IRB_FILE_EXTENSION ".B" /* Binary WHIRL IR file */ 00087 #define IRA_FILE_EXTENSION ".ir"/* Ascii WHIRL IR file */ 00088 #define ERR_FILE_EXTENSION ".e" /* Error file */ 00089 #define LST_FILE_EXTENSION ".l" /* Listing file */ 00090 #define TRC_FILE_EXTENSION ".t" /* Trace file */ 00091 #define ASM_FILE_EXTENSION ".s" /* Assembly code file */ 00092 #define OBJ_FILE_EXTENSION ".o" /* Relocatable object file */ 00093 #define DSTDUMP_FILE_EXTENSION ".be.dst" /* DST dump-file extension */ 00094 00095 /* The maximum profile level -- should probably be defined in a global 00096 * header file, but isn't. 00097 */ 00098 enum {MAX_PROFILE_LEVEL = 0 }; 00099 00100 /* constants used by optimizer now */ 00101 enum { CFG_BB_TAB_SIZE = 10 }; 00102 enum { CFG_LAB_HASH_SIZE = 10 }; 00103 enum { CFG_ALTENTRY_TAB_SIZE = 10 }; 00104 enum { CFG_EARLYEXIT_TAB_SIZE = 10 }; 00105 enum { VAR_PHI_HASH_SIZE = 256 }; 00106 enum { CODE_HTABLE_SIZE = 9113 }; /* should be prime */ 00107 enum { CODE_ITABLE_SIZE = 1619 }; /* should be prime */ 00108 enum { EMITTER_COLOR_TAB_SIZE = 10 }; 00109 enum { RVI_CTAB_SIZE = 521 }; /* should be prime */ 00110 enum { LFTR_HASH_SIZE = 50 }; 00111 00112 #endif /* opt_config_INCLUDED */ 00113
1.5.6