Name Date Size #Lines LOC

..--

aslallocate.cH A D09-Jul-20246.3 KiB20066

aslanalyze.cH A D09-Jul-202419.1 KiB745337

aslascii.cH A D09-Jul-20248 KiB292142

aslbtypes.cH A D09-Jul-202415.2 KiB596288

aslcache.cH A D09-Jul-202411.1 KiB376157

aslcodegen.cH A D09-Jul-202420.8 KiB784395

aslcompile.cH A D29-Jan-202525.8 KiB962500

aslcompiler.hH A D29-Jan-202529.9 KiB1,5521,004

aslcompiler.lH A D29-Jan-202541.1 KiB791501

aslcstyle.yH A D09-Jul-202411.4 KiB251144

asldebug.cH A D09-Jul-202410.6 KiB373157

asldefine.hH A D29-Jan-20257.3 KiB21190

aslerror.cH A D09-Jul-202444 KiB1,551826

aslexternal.cH A D09-Jul-202415.9 KiB573305

aslfileio.cH A D09-Jul-202410.5 KiB402168

aslfiles.cH A D29-Jan-202533.3 KiB1,217630

aslfold.cH A D09-Jul-202425.8 KiB923467

aslglobal.hH A D29-Jan-202516.9 KiB353231

aslhelp.cH A D29-Jan-202511.2 KiB231128

aslhelpers.yH A D09-Jul-202411.4 KiB333277

aslhex.cH A D09-Jul-202412 KiB422194

aslkeywords.yH A D09-Jul-202420.1 KiB368317

asllength.cH A D09-Jul-202411.9 KiB464217

asllisting.cH A D09-Jul-202419.3 KiB747412

asllistsup.cH A D09-Jul-202419.1 KiB712346

aslload.cH A D09-Jul-202442 KiB1,386764

asllookup.cH A D09-Jul-20249.7 KiB316145

aslmain.cH A D09-Jul-20249 KiB340145

aslmap.cH A D29-Jan-202554.3 KiB503399

aslmapenter.cH A D09-Jul-20249.8 KiB349168

aslmapoutput.cH A D09-Jul-202417.5 KiB643357

aslmaputils.cH A D09-Jul-202411.3 KiB409190

aslmessages.cH A D09-Jul-202427.5 KiB537347

aslmessages.hH A D09-Jul-20249.8 KiB328243

aslmethod.cH A D09-Jul-202429.9 KiB997512

aslnamesp.cH A D09-Jul-202412.9 KiB457254

asloffset.cH A D09-Jul-202415 KiB472246

aslopcodes.cH A D09-Jul-202422.5 KiB845411

asloperands.cH A D09-Jul-202434.3 KiB1,287612

aslopt.cH A D09-Jul-202426 KiB817439

asloptions.cH A D29-Jan-202524.3 KiB1,046594

aslparseop.cH A D29-Jan-202524.8 KiB834422

aslparser.yH A D29-Jan-20254.2 KiB13840

aslpld.cH A D09-Jul-202419.9 KiB726484

aslpredef.cH A D09-Jul-202423.9 KiB789363

aslprepkg.cH A D09-Jul-202427 KiB886452

aslprimaries.yH A D09-Jul-202446.1 KiB1,3671,229

aslprintf.cH A D09-Jul-202410.9 KiB381177

aslprune.cH A D09-Jul-20246.6 KiB242112

aslresource.cH A D29-Jan-202532.3 KiB1,138553

aslresources.yH A D29-Jan-202538.5 KiB930869

aslrestype1.cH A D09-Jul-202420.3 KiB642332

aslrestype1i.cH A D09-Jul-202420.4 KiB666369

aslrestype2.cH A D09-Jul-202414.9 KiB460250

aslrestype2d.cH A D29-Jan-202530.1 KiB738467

aslrestype2e.cH A D09-Jul-202420.7 KiB572351

aslrestype2q.cH A D29-Jan-202529.5 KiB717451

aslrestype2s.cH A D09-Jul-202479.3 KiB2,3621,342

aslrestype2w.cH A D29-Jan-202528.7 KiB698441

aslrules.yH A D09-Jul-202427.1 KiB783541

aslstartup.cH A D09-Jul-202414.5 KiB535258

aslstubs.cH A D09-Jul-20247.1 KiB337252

aslsupport.lH A D09-Jul-202424.1 KiB924485

aslsupport.yH A D09-Jul-20243.7 KiB12183

asltokens.yH A D29-Jan-202516.7 KiB541468

asltransform.cH A D09-Jul-202435 KiB1,214628

asltree.cH A D09-Jul-202424.5 KiB970520

asltypes.hH A D09-Jul-202413.1 KiB435259

asltypes.yH A D29-Jan-202511.6 KiB467368

aslutils.cH A D09-Jul-202427.4 KiB1,082518

asluuid.cH A D09-Jul-20243.5 KiB10635

aslwalks.cH A D09-Jul-202432.6 KiB1,155623

aslxref.cH A D09-Jul-202444.3 KiB1,432706

aslxrefout.cH A D09-Jul-202422.8 KiB815462

cvcompiler.cH A D09-Jul-202426.3 KiB922490

cvdisasm.cH A D09-Jul-202411.9 KiB447208

cvparser.cH A D09-Jul-202427.7 KiB932505

dtcompile.cH A D09-Jul-202421.5 KiB794429

dtcompiler.hH A D29-Jan-202518.3 KiB751510

dtcompilerparser.lH A D09-Jul-20245.9 KiB18699

dtcompilerparser.yH A D09-Jul-20245.7 KiB18794

dtexpress.cH A D09-Jul-202410.7 KiB428194

dtfield.cH A D29-Jan-202518.8 KiB749382

dtio.cH A D09-Jul-202428.3 KiB1,128611

dtparser.lH A D09-Jul-20244.4 KiB13260

dtparser.yH A D09-Jul-202410.2 KiB293120

dtsubtable.cH A D09-Jul-20249.6 KiB384152

dttable.cH A D09-Jul-20248.4 KiB287143

dttable1.cH A D29-Jan-202580.8 KiB2,8351,803

dttable2.cH A D29-Jan-202588 KiB3,6122,226

dttemplate.cH A D09-Jul-202416 KiB594347

dttemplate.hH A D29-Jan-2025132.5 KiB2,1221,995

dtutils.cH A D29-Jan-202520.8 KiB876501

new_table.txtH A D09-Jul-20243.5 KiB8965

preprocess.hH A D09-Jul-20248.2 KiB303175

prexpress.cH A D09-Jul-20249.1 KiB305135

prmacros.cH A D29-Jan-202516.6 KiB595304

prparser.lH A D09-Jul-20246.2 KiB237106

prparser.yH A D09-Jul-202410.2 KiB296126

prscan.cH A D09-Jul-202433.6 KiB1,270698

prutils.cH A D29-Jan-202520.7 KiB709350

readme.txtH A D09-Jul-20244.3 KiB14091

readme.txt

1/*
2 * Miscellaneous instructions for building and using the iASL compiler.
3 */
4Last update 9 December 2013.
5
6
71) Generating iASL from source
8------------------------------
9
10Generation of the ASL compiler from source code requires these items:
11
12    1) The ACPICA source code tree.
13    2) An ANSI C compiler.
14    3) The Flex (or Lex) lexical analyzer generator.
15    4) The Bison (or Yacc) parser generator.
16
17There are three major ACPICA source code components that are required to
18generate the compiler (Basically, the entire ACPICA source tree should
19be installed):
20
21    1) The ASL compiler source.
22    2) The ACPICA Core Subsystem source. In particular, the Namespace
23        Manager component is used to create an internal ACPI namespace
24        and symbol table, and the AML Interpreter is used to evaluate
25        constant expressions.
26    3) The "common" source directory that is used for all ACPI components.
27
28
291a) Notes for Linux/Unix generation
30-----------------------------------
31
32iASL has been generated with these versions of Flex/Bison:
33
34    flex:  Version 2.5.32
35    bison: Version 2.6.2
36
37Other required packages:
38
39    make
40    gcc C compiler
41    m4 (macro processor required by bison)
42
43On Linux/Unix systems, the following commands will build the compiler:
44
45    cd acpica (or cd acpica/generate/unix)
46    make clean
47    make iasl
48
49
501b) Notes for Windows generation
51--------------------------------
52
53On Windows, the Visual Studio 2008 project file appears in this directory:
54
55    generate/msvc9/AcpiComponents.sln
56
57The Windows versions of GNU Flex/Bison must be installed, and they must
58be installed in a directory that contains no embedded spaces in the
59pathname. They cannot be installed in the default "c:\Program Files"
60directory. This is a bug in Bison. The default Windows project file for
61iASL assumes that these tools are installed at this location:
62
63    c:\GnuWin32
64
65Once the tools are installed, ensure that this path is added to the
66default system $Path environment variable:
67
68    c:\GnuWin32\bin
69
70Goto: ControlPanel/System/AdvancedSystemSettings/EnvironmentVariables
71
72Important: Now Windows must be rebooted to make the system aware of
73the updated $Path. Otherwise, Bison will not be able to find the M4
74interpreter library and will fail.
75
76iASL has been generated with these versions of Flex/Bison for Windows:
77
78    Flex for Windows:  V2.5.4a
79    Bison for Windows: V2.4.1
80
81Flex is available at:  http://gnuwin32.sourceforge.net/packages/flex.htm
82Bison is available at: http://gnuwin32.sourceforge.net/packages/bison.htm
83
84
85
862) Integration as a custom tool for Visual Studio
87-------------------------------------------------
88
89This procedure adds the iASL compiler as a custom tool that can be used
90to compile ASL source files. The output is sent to the VC output
91window.
92
93a) Select Tools->Customize.
94
95b) Select the "Tools" tab.
96
97c) Scroll down to the bottom of the "Menu Contents" window. There you
98   will see an empty rectangle. Click in the rectangle to enter a
99   name for this tool.
100
101d) Type "iASL Compiler" in the box and hit enter. You can now edit
102   the other fields for this new custom tool.
103
104e) Enter the following into the fields:
105
106   Command:             C:\Acpi\iasl.exe
107   Arguments:           -vi "$(FilePath)"
108   Initial Directory    "$(FileDir)"
109   Use Output Window    <Check this option>
110
111   "Command" must be the path to wherever you copied the compiler.
112   "-vi" instructs the compiler to produce messages appropriate for VC.
113   Quotes around FilePath and FileDir enable spaces in filenames.
114
115f) Select "Close".
116
117These steps will add the compiler to the tools menu as a custom tool.
118By enabling "Use Output Window", you can click on error messages in
119the output window and the source file and source line will be
120automatically displayed by VC. Also, you can use F4 to step through
121the messages and the corresponding source line(s).
122
123
124
1253) Integrating iASL into a Visual Studio ASL project build
126----------------------------------------------------------
127
128This procedure creates a project that compiles ASL files to AML.
129
130a) Create a new, empty project and add your .ASL files to the project
131
132b) For all ASL files in the project, specify a custom build (under
133Project/Settings/CustomBuild with the following settings (or similar):
134
135Commands:
136    c:\acpi\libraries\iasl.exe -vs -vi "$(InputPath)"
137
138Output:
139    $(InputDir)\$(InputPath).aml
140