Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036 #ifndef config_asm_INCLUDED
00037 #define config_asm_INCLUDED
00038 #ifdef __cplusplus
00039 extern "C" {
00040 #endif
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062 #ifdef _KEEP_RCS_ID
00063 #endif
00064
00065 #define Label_Name_Separator "_"
00066
00067
00068 #define Symbol_Name_Suffix "#"
00069
00070
00071
00072
00073 #define BB_Label_Format ".BB%d_%s"
00074
00075
00076
00077
00078 #define User_Label_Format ".L_%s_%s"
00079 #define User_Label_Number_Format ".L_%d_%d_%s"
00080
00081
00082
00083
00084 #define Ret_Block_Label_Format ".RET_%s"
00085
00086
00087
00088
00089 #define Entry_Point_Alignment_Format "\t.align\t4\n"
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120 #define Intrinsic_Proc_Format "%s"
00121 #define Ftn_Extern_Data_Format "%s_"
00122 #define C_Extern_Data_Format "%s"
00123 #define Ftn_Extern_Proc_Format "%s_"
00124 #define C_Extern_Proc_Format "%s"
00125 #define C_Global_Static_Format "GS.%s"
00126 #define C_Local_Static_Format "LS.%1d.%s"
00127 #define Deferred_Ref_Format "%s"
00128 #define Deferred_Ref_Ofst_Format "%s%c%d"
00129 #define Local_Ret_Buf_Format "%s.RBUF"
00130
00131 #define DFLT_FTN_MAIN "MAIN"
00132 #define DFLT_FTN_LOWMAIN "main"
00133 #define BLANK_COM_NAME "_BLNK__"
00134 #define RDATA_RAW_NAME ".rdata"
00135 #define SDATA_RAW_NAME ".sdata"
00136 #define DATA_RAW_NAME ".data"
00137 #define GOT_RAW_NAME ".got"
00138 #define BSS_RAW_NAME ".bss"
00139 #define LIT4_RAW_NAME ".lit4"
00140 #define LIT8_RAW_NAME ".lit8"
00141 #define LIT16_RAW_NAME ".lit16"
00142
00143 #define ASM_CMNT_LINE "//"
00144 #define ASM_CMNT "//"
00145
00146 #define AS_STOP_BIT ";;"
00147
00148
00149 #define AS_ALIGN ".align"
00150 #define AS_BYTE "data1"
00151 #define AS_COM ".common"
00152 #define AS_DATA ".data"
00153 #define AS_DOUBLE ".double"
00154 #define AS_DWORD "data8"
00155 #define AS_DWORD_UNALIGNED "data8.ua"
00156 #define AS_DYNSYM ((char *)0)
00157 #define AS_END ".endp"
00158 #define AS_ENT ".proc"
00159 #define AS_AENT "//.aproc"
00160 #define AS_FLOAT ".float"
00161 #define AS_FILE ".file"
00162 #define AS_FMASK ".fmask"
00163 #define AS_FRAME ".fframe"
00164 #define AS_GLOBAL ".global"
00165 #define AS_GPVALUE ".gpvalue"
00166 #define AS_HALF "data2"
00167 #define AS_HALF_UNALIGNED "data2.ua"
00168 #define AS_BSS ".lcomm"
00169 #define AS_MASK "//.mask"
00170 #define AS_ORIGIN ".org"
00171 #define AS_RDATA ".rdata"
00172 #define AS_SDATA ".sdata"
00173 #define AS_SECTION ".section"
00174 #define AS_SIZE ".size"
00175 #define AS_SPACE ".skip"
00176 #define AS_STRING "string"
00177 #define AS_TEXT ".text"
00178 #define AS_TYPE ".type"
00179 #define AS_TYPE_FUNC "@function"
00180 #define AS_TYPE_OBJECT "@object"
00181 #define AS_WEAK ".weak"
00182 #define AS_WORD "data4"
00183 #define AS_WORD_UNALIGNED "data4.ua"
00184 #define AS_IDENT "#ident"
00185
00186
00187
00188
00189 extern char *AS_ADDRESS;
00190 extern char *AS_ADDRESS_UNALIGNED;
00191
00192
00193 #define AS_GPREL "@gprel"
00194 #define AS_LTOFF "@ltoff"
00195 #define AS_FPTR "@fptr"
00196 #define AS_GP_REL ((char *)0)
00197 #define AS_NEGATE ((char *)0)
00198
00199
00200
00201
00202 #define ASM_NAME_FUNC(kind,name) "%s(%s)", kind, name
00203 #define ASM_DIR_NOTRANSFORM() ;
00204 #define ASM_DIR_TRANSFORM() ;
00205 #define ASM_DIR_NOREORDER() ;
00206 #define ASM_DIR_NOAT() ;
00207 #define ASM_DIR_STOINTERNAL(n) ;
00208 #define ASM_DIR_GPVALUE() fprintf(Asm_File, "//\t%s %d\n", \
00209 AS_GPVALUE, GP_DISP);
00210 #define ASM_DIR_FILE(count, file, name) fprintf (Asm_File, \
00211 "\t%s\t\"%s/%s\"\n", \
00212 AS_FILE, \
00213 incl_table[DST_FILE_NAME_dir(file)], name);
00214 #define ASM_DIR_ALIGN(p, s) fprintf(Asm_File, "\t%s %d\n", AS_ALIGN,STB_align(s));
00215
00216
00217 #define ASM_DIR_ZERO(fl, l) fprintf(fl, "\t%s %d\n", AS_SPACE, l)
00218 #define ASM_DIR_SKIP(fl, l) fprintf(fl, "\t%s %d\n", AS_SPACE, l)
00219
00220 #ifdef __cplusplus
00221 }
00222 #endif
00223 #endif