• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

aslallocate.cD11-Mar-202412.4 KiB30866

aslanalyze.cD11-Mar-202425.2 KiB853337

aslascii.cD11-Mar-202414.1 KiB400142

aslbtypes.cD11-Mar-202421.3 KiB704288

aslcache.cD11-Mar-202417.2 KiB484157

aslcodegen.cD11-Mar-202426.9 KiB892395

aslcompile.cD11-Mar-202431.8 KiB1,070500

aslcompiler.hD11-Mar-202435.7 KiB1,6601,004

aslcompiler.lD11-Mar-202446.9 KiB899501

aslcstyle.yD11-Mar-202417.5 KiB359252

asldebug.cD11-Mar-202416.7 KiB481157

asldefine.hD11-Mar-202413.4 KiB31990

aslerror.cD11-Mar-202450 KiB1,659826

aslexternal.cD11-Mar-202422 KiB681305

aslfileio.cD11-Mar-202416.6 KiB510168

aslfiles.cD11-Mar-202439.2 KiB1,325630

aslfold.cD11-Mar-202431.9 KiB1,031467

aslglobal.hD11-Mar-202422.9 KiB461231

aslhelp.cD11-Mar-202417.2 KiB339128

aslhelpers.yD11-Mar-202417.5 KiB441385

aslhex.cD11-Mar-202418.1 KiB530194

aslkeywords.yD11-Mar-202426.2 KiB476425

asllength.cD11-Mar-202418 KiB572217

asllisting.cD11-Mar-202425.4 KiB855412

asllistsup.cD11-Mar-202425.2 KiB820346

aslload.cD11-Mar-202448 KiB1,494764

asllookup.cD11-Mar-202415.8 KiB424145

aslmain.cD11-Mar-202415.1 KiB448145

aslmap.cD11-Mar-202460 KiB611399

aslmapenter.cD11-Mar-202415.9 KiB457168

aslmapoutput.cD11-Mar-202423.6 KiB751357

aslmaputils.cD11-Mar-202417.4 KiB517190

aslmessages.cD11-Mar-202433.5 KiB645347

aslmessages.hD11-Mar-202415.9 KiB436243

aslmethod.cD11-Mar-202436 KiB1,105512

aslnamesp.cD11-Mar-202419 KiB565254

asloffset.cD11-Mar-202421.1 KiB580246

aslopcodes.cD11-Mar-202428.6 KiB953411

asloperands.cD11-Mar-202440.4 KiB1,395612

aslopt.cD11-Mar-202432.1 KiB925439

asloptions.cD11-Mar-202430.2 KiB1,154594

aslparseop.cD11-Mar-202430.9 KiB942422

aslparser.yD11-Mar-202410.3 KiB24640

aslpld.cD11-Mar-202426 KiB834484

aslpredef.cD11-Mar-202429.9 KiB897363

aslprepkg.cD11-Mar-202433 KiB994452

aslprimaries.yD11-Mar-202452.2 KiB1,4751,337

aslprintf.cD11-Mar-202417 KiB489177

aslprune.cD11-Mar-202412.7 KiB350112

aslresource.cD11-Mar-202438.1 KiB1,246553

aslresources.yD11-Mar-202443 KiB1,038977

aslrestype1.cD11-Mar-202426.3 KiB750332

aslrestype1i.cD11-Mar-202426.5 KiB774369

aslrestype2.cD11-Mar-202421 KiB568250

aslrestype2d.cD11-Mar-202431.4 KiB846467

aslrestype2e.cD11-Mar-202426.8 KiB680351

aslrestype2q.cD11-Mar-202430.8 KiB825451

aslrestype2s.cD11-Mar-202485.4 KiB2,4701,342

aslrestype2w.cD11-Mar-202430 KiB806441

aslrules.yD11-Mar-202433.2 KiB891649

aslstartup.cD11-Mar-202420.6 KiB643258

aslstubs.cD11-Mar-202413.2 KiB445252

aslsupport.lD11-Mar-202430.2 KiB1,032485

aslsupport.yD11-Mar-20249.8 KiB229191

asltokens.yD11-Mar-202422.7 KiB649576

asltransform.cD11-Mar-202441.1 KiB1,322628

asltree.cD11-Mar-202430.6 KiB1,078520

asltypes.hD11-Mar-202419.2 KiB543259

asltypes.yD11-Mar-202417.6 KiB575476

aslutils.cD11-Mar-202433.5 KiB1,190518

asluuid.cD11-Mar-20249.6 KiB21435

aslwalks.cD11-Mar-202438.7 KiB1,263623

aslxref.cD11-Mar-202450.3 KiB1,539705

aslxrefout.cD11-Mar-202428.9 KiB923462

cvcompiler.cD11-Mar-202432.4 KiB1,030490

cvdisasm.cD11-Mar-202418 KiB555208

cvparser.cD11-Mar-202433.8 KiB1,040505

dtcompile.cD11-Mar-202427.6 KiB901428

dtcompiler.hD11-Mar-202424.4 KiB859510

dtcompilerparser.lD11-Mar-202412 KiB29499

dtcompilerparser.yD11-Mar-202411.6 KiB28584

dtexpress.cD11-Mar-202416.8 KiB536194

dtfield.cD11-Mar-202424.8 KiB857382

dtio.cD11-Mar-202434.4 KiB1,236611

dtparser.lD11-Mar-202410.5 KiB24060

dtparser.yD11-Mar-202416.3 KiB399118

dtsubtable.cD11-Mar-202415.6 KiB492152

dttable.cD11-Mar-202414.5 KiB395143

dttable1.cD11-Mar-202482.7 KiB2,9431,803

dttable2.cD11-Mar-2024104.9 KiB3,7202,226

dttemplate.cD11-Mar-202422.1 KiB702347

dttemplate.hD11-Mar-2024140.9 KiB2,2301,995

dtutils.cD11-Mar-202426.8 KiB984501

new_table.txtD11-Mar-20243.5 KiB8965

preprocess.hD11-Mar-202414.2 KiB411175

prexpress.cD11-Mar-202415.2 KiB413135

prmacros.cD11-Mar-202422.7 KiB703304

prparser.lD11-Mar-202412.3 KiB345106

prparser.yD11-Mar-202416.3 KiB402124

prscan.cD11-Mar-202439.7 KiB1,378698

prutils.cD11-Mar-202426.4 KiB816349

readme.txtD11-Mar-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