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
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055 #include "config_list.h"
00056
00057
00058
00059
00060
00061
00062
00063 BOOL List_Enabled = FALSE;
00064 BOOL List_All_Options = FALSE;
00065 BOOL List_Cite = FALSE;
00066 BOOL List_Options = FALSE;
00067 BOOL List_Symbols = FALSE;
00068 BOOL List_Notes = TRUE;
00069 static BOOL List_Notes_Set = FALSE;
00070 BOOL List_Software_Names = FALSE;
00071 BOOL List_Source = TRUE;
00072 char* List_Build_Date = NULL;
00073 #if defined(TARG_SL)
00074 BOOL List_Profile=FALSE;
00075 #endif
00076
00077
00078 static OPTION_DESC Options_LIST[] = {
00079
00080 { OVK_BOOL, OV_VISIBLE, FALSE, "", "",
00081 0, 0, 0, &List_Enabled, NULL,
00082 "Enable listing file (.l) generation" },
00083
00084 { OVK_BOOL, OV_VISIBLE, FALSE, "all_options", "al",
00085 0, 0, 0, &List_All_Options, NULL,
00086 "List all options in listing file" },
00087
00088 { OVK_BOOL, OV_VISIBLE, FALSE, "cite", "ci",
00089 0, 0, 0, &List_Cite, NULL,
00090 "List CITE information in listing file" },
00091
00092 { OVK_BOOL, OV_INTERNAL, FALSE, "efile", "ef",
00093 0, 0, 0, &Err_File_Name, NULL,
00094 "Specify listing file name instead of <base>.l" },
00095
00096 { OVK_BOOL, OV_VISIBLE, FALSE, "options", "op",
00097 0, 0, 0, &List_Options, NULL,
00098 "List set/modified options in listing file" },
00099
00100 { OVK_BOOL, OV_VISIBLE, FALSE, "notes", "no",
00101 0, 0, 0, &List_Notes, &List_Notes_Set,
00102 "Put compiler notes in .s file" },
00103
00104 { OVK_BOOL, OV_INTERNAL, FALSE, "source", "so",
00105 0, 0, 0, &List_Source, NULL,
00106 "Intersperse source code in .s file" },
00107
00108 { OVK_BOOL, OV_VISIBLE, FALSE, "symbols", "sy",
00109 0, 0, 0, &List_Symbols, NULL,
00110 "List symbols in listing file" },
00111
00112 #if defined (TARG_SL)
00113 { OVK_BOOL, OV_VISIBLE, FALSE, "profile", "prof",
00114 0, 0, 0, &List_Profile, NULL,
00115 "List profile in listing file" },
00116 #endif
00117
00118 { OVK_BOOL, OV_VISIBLE, FALSE, "software_names", "soft",
00119 0, 0, 0, &List_Software_Names, NULL,
00120 "Use software (ABI) register names in .s file" },
00121
00122 { OVK_NAME, OV_VISIBLE, FALSE, "build_date", "",
00123 0, 0, 0, &List_Build_Date, NULL,
00124 "Put build date in assembly file" },
00125
00126 { OVK_COUNT }
00127 };
00128
00129
00130
00131
00132
00133
00134
00135
00136
00137
00138 static void
00139 LIST_Configure ( void )
00140 {
00141
00142 if ( List_All_Options ) List_Options = TRUE;
00143
00144
00145 #if defined(TARG_SL)
00146 if ( List_Symbols || List_Cite || List_Options || List_Profile ) {
00147 #else
00148 if ( List_Symbols || List_Cite || List_Options ) {
00149 #endif
00150 List_Enabled = TRUE;
00151 }
00152 }
00153