aslmain.c (245582) | aslmain.c (246849) |
---|---|
1/****************************************************************************** 2 * 3 * Module Name: aslmain - compiler main and utilities 4 * 5 *****************************************************************************/ 6 7/* 8 * Copyright (C) 2000 - 2013, Intel Corp. --- 97 unchanged lines hidden (view full) --- 106/******************************************************************************* 107 * 108 * FUNCTION: Options 109 * 110 * PARAMETERS: None 111 * 112 * RETURN: None 113 * | 1/****************************************************************************** 2 * 3 * Module Name: aslmain - compiler main and utilities 4 * 5 *****************************************************************************/ 6 7/* 8 * Copyright (C) 2000 - 2013, Intel Corp. --- 97 unchanged lines hidden (view full) --- 106/******************************************************************************* 107 * 108 * FUNCTION: Options 109 * 110 * PARAMETERS: None 111 * 112 * RETURN: None 113 * |
114 * DESCRIPTION: Display option help message | 114 * DESCRIPTION: Display option help message. 115 * Optional items in square brackets. |
115 * 116 ******************************************************************************/ 117 118static void 119Options ( 120 void) 121{ 122 --- 4 unchanged lines hidden (view full) --- 127 ACPI_OPTION ("-v", "Display compiler version"); 128 129 printf ("\nPreprocessor:\n"); 130 ACPI_OPTION ("-D <symbol>", "Define symbol for preprocessor use"); 131 ACPI_OPTION ("-li", "Create preprocessed output file (*.i)"); 132 ACPI_OPTION ("-P", "Preprocess only and create preprocessor output file (*.i)"); 133 ACPI_OPTION ("-Pn", "Disable preprocessor"); 134 | 116 * 117 ******************************************************************************/ 118 119static void 120Options ( 121 void) 122{ 123 --- 4 unchanged lines hidden (view full) --- 128 ACPI_OPTION ("-v", "Display compiler version"); 129 130 printf ("\nPreprocessor:\n"); 131 ACPI_OPTION ("-D <symbol>", "Define symbol for preprocessor use"); 132 ACPI_OPTION ("-li", "Create preprocessed output file (*.i)"); 133 ACPI_OPTION ("-P", "Preprocess only and create preprocessor output file (*.i)"); 134 ACPI_OPTION ("-Pn", "Disable preprocessor"); 135 |
135 printf ("\nGeneral Output:\n"); | 136 printf ("\nGeneral Processing:\n"); |
136 ACPI_OPTION ("-p <prefix>", "Specify path/filename prefix for all output files"); 137 ACPI_OPTION ("-va", "Disable all errors and warnings (summary only)"); 138 ACPI_OPTION ("-vi", "Less verbose errors and warnings for use with IDEs"); 139 ACPI_OPTION ("-vo", "Enable optimization comments"); 140 ACPI_OPTION ("-vr", "Disable remarks"); 141 ACPI_OPTION ("-vs", "Disable signon"); 142 ACPI_OPTION ("-w1 -w2 -w3", "Set warning reporting level"); 143 ACPI_OPTION ("-we", "Report warnings as errors"); 144 | 137 ACPI_OPTION ("-p <prefix>", "Specify path/filename prefix for all output files"); 138 ACPI_OPTION ("-va", "Disable all errors and warnings (summary only)"); 139 ACPI_OPTION ("-vi", "Less verbose errors and warnings for use with IDEs"); 140 ACPI_OPTION ("-vo", "Enable optimization comments"); 141 ACPI_OPTION ("-vr", "Disable remarks"); 142 ACPI_OPTION ("-vs", "Disable signon"); 143 ACPI_OPTION ("-w1 -w2 -w3", "Set warning reporting level"); 144 ACPI_OPTION ("-we", "Report warnings as errors"); 145 |
145 printf ("\nAML and Data Output Files:\n"); 146 ACPI_OPTION ("-sa -sc", "Create assembler or C source file (*.asm or *.c)"); 147 ACPI_OPTION ("-ia -ic", "Create assembler or C include file (*.inc or *.h)"); 148 ACPI_OPTION ("-ta -tc -ts", "Create assembler, C, or ASL hex table (*.hex)"); 149 150 printf ("\nAML Code Generation:\n"); | 146 printf ("\nAML Code Generation (*.aml):\n"); |
151 ACPI_OPTION ("-oa", "Disable all optimizations (compatibility mode)"); 152 ACPI_OPTION ("-of", "Disable constant folding"); 153 ACPI_OPTION ("-oi", "Disable integer optimization to Zero/One/Ones"); 154 ACPI_OPTION ("-on", "Disable named reference string optimization"); 155 ACPI_OPTION ("-cr", "Disable Resource Descriptor error checking"); 156 ACPI_OPTION ("-in", "Ignore NoOp operators"); 157 ACPI_OPTION ("-r <revision>", "Override table header Revision (1-255)"); 158 | 147 ACPI_OPTION ("-oa", "Disable all optimizations (compatibility mode)"); 148 ACPI_OPTION ("-of", "Disable constant folding"); 149 ACPI_OPTION ("-oi", "Disable integer optimization to Zero/One/Ones"); 150 ACPI_OPTION ("-on", "Disable named reference string optimization"); 151 ACPI_OPTION ("-cr", "Disable Resource Descriptor error checking"); 152 ACPI_OPTION ("-in", "Ignore NoOp operators"); 153 ACPI_OPTION ("-r <revision>", "Override table header Revision (1-255)"); 154 |
159 printf ("\nASL Listing Files:\n"); | 155 printf ("\nOptional Source Code Output Files:\n"); 156 ACPI_OPTION ("-sc -sa", "Create source file in C or assembler (*.c or *.asm)"); 157 ACPI_OPTION ("-ic -ia", "Create include file in C or assembler (*.h or *.inc)"); 158 ACPI_OPTION ("-tc -ta -ts", "Create hex AML table in C, assembler, or ASL (*.hex)"); 159 160 printf ("\nOptional Listing Files:\n"); |
160 ACPI_OPTION ("-l", "Create mixed listing file (ASL source and AML) (*.lst)"); 161 ACPI_OPTION ("-ln", "Create namespace file (*.nsp)"); 162 ACPI_OPTION ("-ls", "Create combined source file (expanded includes) (*.src)"); 163 | 161 ACPI_OPTION ("-l", "Create mixed listing file (ASL source and AML) (*.lst)"); 162 ACPI_OPTION ("-ln", "Create namespace file (*.nsp)"); 163 ACPI_OPTION ("-ls", "Create combined source file (expanded includes) (*.src)"); 164 |
164 printf ("\nACPI Data Tables:\n"); 165 ACPI_OPTION ("-G", "Compile custom table containing generic operators"); 166 ACPI_OPTION ("-vt", "Create verbose templates (full disassembly)"); | 165 printf ("\nData Table Compiler:\n"); 166 ACPI_OPTION ("-G", "Compile custom table that contains generic operators"); 167 ACPI_OPTION ("-vt", "Create verbose template files (full disassembly)"); |
167 168 printf ("\nAML Disassembler:\n"); | 168 169 printf ("\nAML Disassembler:\n"); |
169 ACPI_OPTION ("-d [file]", "Disassemble or decode binary ACPI table to file (*.dsl)"); 170 ACPI_OPTION ("-da [f1,f2]", "Disassemble multiple tables from single namespace"); | 170 ACPI_OPTION ("-d <f1,f2>", "Disassemble or decode binary ACPI tables to file (*.dsl)"); 171 ACPI_OPTION ("", " (Optional, file type is automatically detected)"); 172 ACPI_OPTION ("-da <f1,f2>", "Disassemble multiple tables from single namespace"); |
171 ACPI_OPTION ("-db", "Do not translate Buffers to Resource Templates"); | 173 ACPI_OPTION ("-db", "Do not translate Buffers to Resource Templates"); |
172 ACPI_OPTION ("-dc [file]", "Disassemble AML and immediately compile it"); 173 ACPI_OPTION ("", "(Obtain DSDT from current system if no input file)"); 174 ACPI_OPTION ("-e [f1,f2]", "Include ACPI table(s) for external symbol resolution"); | 174 ACPI_OPTION ("-dc <f1,f2>", "Disassemble AML and immediately compile it"); 175 ACPI_OPTION ("", " (Obtain DSDT from current system if no input file)"); 176 ACPI_OPTION ("-e <f1,f2>", "Include ACPI table(s) for external symbol resolution"); |
175 ACPI_OPTION ("-g", "Get ACPI tables and write to files (*.dat)"); 176 ACPI_OPTION ("-in", "Ignore NoOp opcodes"); 177 ACPI_OPTION ("-vt", "Dump binary table data in hex format within output file"); 178 179 printf ("\nHelp:\n"); 180 ACPI_OPTION ("-h", "This message"); 181 ACPI_OPTION ("-hc", "Display operators allowed in constant expressions"); 182 ACPI_OPTION ("-hf", "Display help for output filename generation"); 183 ACPI_OPTION ("-hr", "Display ACPI reserved method names"); 184 ACPI_OPTION ("-ht", "Display currently supported ACPI table names"); 185 186 printf ("\nDebug Options:\n"); 187 ACPI_OPTION ("-bf -bt", "Create debug file (full or parse tree only) (*.txt)"); 188 ACPI_OPTION ("-f", "Ignore errors, force creation of AML output file(s)"); | 177 ACPI_OPTION ("-g", "Get ACPI tables and write to files (*.dat)"); 178 ACPI_OPTION ("-in", "Ignore NoOp opcodes"); 179 ACPI_OPTION ("-vt", "Dump binary table data in hex format within output file"); 180 181 printf ("\nHelp:\n"); 182 ACPI_OPTION ("-h", "This message"); 183 ACPI_OPTION ("-hc", "Display operators allowed in constant expressions"); 184 ACPI_OPTION ("-hf", "Display help for output filename generation"); 185 ACPI_OPTION ("-hr", "Display ACPI reserved method names"); 186 ACPI_OPTION ("-ht", "Display currently supported ACPI table names"); 187 188 printf ("\nDebug Options:\n"); 189 ACPI_OPTION ("-bf -bt", "Create debug file (full or parse tree only) (*.txt)"); 190 ACPI_OPTION ("-f", "Ignore errors, force creation of AML output file(s)"); |
191 ACPI_OPTION ("-m <size>", "Set internal line buffer size (in Kbytes)"); |
|
189 ACPI_OPTION ("-n", "Parse only, no output generation"); 190 ACPI_OPTION ("-ot", "Display compile times and statistics"); 191 ACPI_OPTION ("-x <level>", "Set debug level for trace output"); 192 ACPI_OPTION ("-z", "Do not insert new compiler ID for DataTables"); 193} 194 195 196/******************************************************************************* --- 879 unchanged lines hidden --- | 192 ACPI_OPTION ("-n", "Parse only, no output generation"); 193 ACPI_OPTION ("-ot", "Display compile times and statistics"); 194 ACPI_OPTION ("-x <level>", "Set debug level for trace output"); 195 ACPI_OPTION ("-z", "Do not insert new compiler ID for DataTables"); 196} 197 198 199/******************************************************************************* --- 879 unchanged lines hidden --- |