Name Date Size #Lines LOC

..08-May-2022-

aslallocate.cH A D08-May-202212.4 KiB30465

aslanalyze.cH A D08-May-202225.2 KiB853337

aslascii.cH A D08-May-202214.1 KiB400142

aslbtypes.cH A D08-May-202221.2 KiB703287

aslcache.cH A D08-May-202217.2 KiB484157

aslcodegen.cH A D08-May-202224.9 KiB819355

aslcompile.cH A D08-May-202231.5 KiB1,063495

aslcompiler.hH A D08-May-202235.6 KiB1,6571,001

aslcompiler.lH A D08-May-202246.4 KiB887495

aslcstyle.yH A D08-May-202217.5 KiB359252

asldebug.cH A D08-May-202216.7 KiB481157

asldefine.hH A D08-May-202213.4 KiB31990

aslerror.cH A D08-May-202250 KiB1,659826

aslexternal.cH A D08-May-202222 KiB681305

aslfileio.cH A D08-May-202216.6 KiB510168

aslfiles.cH A D08-May-202239.2 KiB1,325630

aslfold.cH A D08-May-202231.9 KiB1,031467

aslglobal.hH A D08-May-202222.9 KiB461231

aslhelp.cH A D08-May-202217.1 KiB338127

aslhelpers.yH A D08-May-202217.5 KiB441385

aslhex.cH A D08-May-202218.1 KiB530194

aslkeywords.yH A D08-May-202225.7 KiB465416

asllength.cH A D08-May-202218 KiB572217

asllisting.cH A D08-May-202225.4 KiB855412

asllistsup.cH A D08-May-202225.2 KiB820346

aslload.cH A D08-May-202248 KiB1,494764

asllookup.cH A D08-May-202215.8 KiB424145

aslmain.cH A D08-May-202215.1 KiB448145

aslmap.cH A D08-May-202259.2 KiB605393

aslmapenter.cH A D08-May-202215.9 KiB457168

aslmapoutput.cH A D08-May-202223.6 KiB751357

aslmaputils.cH A D08-May-202217.4 KiB517190

aslmessages.cH A D08-May-202233.4 KiB644347

aslmessages.hH A D08-May-202215.9 KiB436243

aslmethod.cH A D08-May-202236 KiB1,105512

aslnamesp.cH A D08-May-202219 KiB565254

asloffset.cH A D08-May-202221.1 KiB580246

aslopcodes.cH A D08-May-202228.6 KiB953411

asloperands.cH A D08-May-202240.2 KiB1,389610

aslopt.cH A D08-May-202232.1 KiB925439

asloptions.cH A D08-May-202229.5 KiB1,132579

aslparseop.cH A D08-May-202230.8 KiB940421

aslparser.yH A D08-May-202210.3 KiB24640

aslpld.cH A D08-May-202226 KiB834484

aslpredef.cH A D08-May-202229.9 KiB897363

aslprepkg.cH A D08-May-202233 KiB994452

aslprimaries.yH A D08-May-202252.3 KiB1,4751,337

aslprintf.cH A D08-May-202217 KiB489177

aslprune.cH A D08-May-202212.7 KiB350112

aslresource.cH A D08-May-202238 KiB1,240550

aslresources.yH A D08-May-202242.2 KiB1,022962

aslrestype1.cH A D08-May-202226.3 KiB750332

aslrestype1i.cH A D08-May-202226.5 KiB774369

aslrestype2.cH A D08-May-202221 KiB568250

aslrestype2d.cH A D08-May-202231.4 KiB846467

aslrestype2e.cH A D08-May-202226.8 KiB680351

aslrestype2q.cH A D08-May-202230.8 KiB825451

aslrestype2s.cH A D08-May-202283.1 KiB2,3791,282

aslrestype2w.cH A D08-May-202230 KiB806441

aslrules.yH A D08-May-202233.1 KiB891652

aslstartup.cH A D08-May-202220.6 KiB643258

aslstubs.cH A D08-May-202213.2 KiB445252

aslsupport.lH A D08-May-202230.2 KiB1,032485

aslsupport.yH A D08-May-20229.8 KiB229191

asltokens.yH A D08-May-202222.6 KiB643570

asltransform.cH A D08-May-202241.1 KiB1,322628

asltree.cH A D08-May-202230.5 KiB1,077519

asltypes.hH A D08-May-202219.2 KiB543259

asltypes.yH A D08-May-202217.6 KiB570474

aslutils.cH A D08-May-202233.5 KiB1,190518

asluuid.cH A D08-May-20229.6 KiB21435

aslwalks.cH A D08-May-202238.7 KiB1,263623

aslxref.cH A D08-May-202250.3 KiB1,539705

aslxrefout.cH A D08-May-202228.9 KiB923462

cvcompiler.cH A D08-May-202232.4 KiB1,030490

cvdisasm.cH A D08-May-202218 KiB555208

cvparser.cH A D08-May-202233.8 KiB1,040505

dtcompile.cH A D08-May-202226.1 KiB859408

dtcompiler.hH A D08-May-202223.8 KiB833489

dtcompilerparser.lH A D08-May-202212 KiB29499

dtcompilerparser.yH A D08-May-202211.6 KiB28584

dtexpress.cH A D08-May-202216.7 KiB535193

dtfield.cH A D08-May-202224.7 KiB851378

dtio.cH A D08-May-202234.4 KiB1,236611

dtparser.lH A D08-May-202210.5 KiB24060

dtparser.yH A D08-May-202216.3 KiB399118

dtsubtable.cH A D08-May-202215.6 KiB492152

dttable.cH A D08-May-202214.5 KiB395143

dttable1.cH A D08-May-202272.3 KiB2,5811,567

dttable2.cH A D08-May-202289.4 KiB3,2381,908

dttemplate.cH A D08-May-202222.1 KiB702347

dttemplate.hH A D08-May-2022126.2 KiB2,0091,780

dtutils.cH A D08-May-202226.7 KiB979496

new_table.txtH A D08-May-20223.5 KiB8965

preprocess.hH A D08-May-202213.9 KiB402167

prexpress.cH A D08-May-202215.2 KiB413135

prmacros.cH A D08-May-202222 KiB689304

prparser.lH A D08-May-202212.3 KiB345106

prparser.yH A D08-May-202216.3 KiB402124

prscan.cH A D08-May-202239.7 KiB1,375698

prutils.cH A D08-May-202219.2 KiB582205

readme.txtH A D08-May-20224.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