|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | 08-May-2022 | - |
| aslallocate.c | H A D | 08-May-2022 | 12.4 KiB | 304 | 65 |
| aslanalyze.c | H A D | 08-May-2022 | 25.2 KiB | 853 | 337 |
| aslascii.c | H A D | 08-May-2022 | 14.1 KiB | 400 | 142 |
| aslbtypes.c | H A D | 08-May-2022 | 21.2 KiB | 703 | 287 |
| aslcache.c | H A D | 08-May-2022 | 17.2 KiB | 484 | 157 |
| aslcodegen.c | H A D | 08-May-2022 | 24.9 KiB | 819 | 355 |
| aslcompile.c | H A D | 08-May-2022 | 31.5 KiB | 1,063 | 495 |
| aslcompiler.h | H A D | 08-May-2022 | 35.6 KiB | 1,657 | 1,001 |
| aslcompiler.l | H A D | 08-May-2022 | 46.4 KiB | 887 | 495 |
| aslcstyle.y | H A D | 08-May-2022 | 17.5 KiB | 359 | 252 |
| asldebug.c | H A D | 08-May-2022 | 16.7 KiB | 481 | 157 |
| asldefine.h | H A D | 08-May-2022 | 13.4 KiB | 319 | 90 |
| aslerror.c | H A D | 08-May-2022 | 50 KiB | 1,659 | 826 |
| aslexternal.c | H A D | 08-May-2022 | 22 KiB | 681 | 305 |
| aslfileio.c | H A D | 08-May-2022 | 16.6 KiB | 510 | 168 |
| aslfiles.c | H A D | 08-May-2022 | 39.2 KiB | 1,325 | 630 |
| aslfold.c | H A D | 08-May-2022 | 31.9 KiB | 1,031 | 467 |
| aslglobal.h | H A D | 08-May-2022 | 22.9 KiB | 461 | 231 |
| aslhelp.c | H A D | 08-May-2022 | 17.1 KiB | 338 | 127 |
| aslhelpers.y | H A D | 08-May-2022 | 17.5 KiB | 441 | 385 |
| aslhex.c | H A D | 08-May-2022 | 18.1 KiB | 530 | 194 |
| aslkeywords.y | H A D | 08-May-2022 | 25.7 KiB | 465 | 416 |
| asllength.c | H A D | 08-May-2022 | 18 KiB | 572 | 217 |
| asllisting.c | H A D | 08-May-2022 | 25.4 KiB | 855 | 412 |
| asllistsup.c | H A D | 08-May-2022 | 25.2 KiB | 820 | 346 |
| aslload.c | H A D | 08-May-2022 | 48 KiB | 1,494 | 764 |
| asllookup.c | H A D | 08-May-2022 | 15.8 KiB | 424 | 145 |
| aslmain.c | H A D | 08-May-2022 | 15.1 KiB | 448 | 145 |
| aslmap.c | H A D | 08-May-2022 | 59.2 KiB | 605 | 393 |
| aslmapenter.c | H A D | 08-May-2022 | 15.9 KiB | 457 | 168 |
| aslmapoutput.c | H A D | 08-May-2022 | 23.6 KiB | 751 | 357 |
| aslmaputils.c | H A D | 08-May-2022 | 17.4 KiB | 517 | 190 |
| aslmessages.c | H A D | 08-May-2022 | 33.4 KiB | 644 | 347 |
| aslmessages.h | H A D | 08-May-2022 | 15.9 KiB | 436 | 243 |
| aslmethod.c | H A D | 08-May-2022 | 36 KiB | 1,105 | 512 |
| aslnamesp.c | H A D | 08-May-2022 | 19 KiB | 565 | 254 |
| asloffset.c | H A D | 08-May-2022 | 21.1 KiB | 580 | 246 |
| aslopcodes.c | H A D | 08-May-2022 | 28.6 KiB | 953 | 411 |
| asloperands.c | H A D | 08-May-2022 | 40.2 KiB | 1,389 | 610 |
| aslopt.c | H A D | 08-May-2022 | 32.1 KiB | 925 | 439 |
| asloptions.c | H A D | 08-May-2022 | 29.5 KiB | 1,132 | 579 |
| aslparseop.c | H A D | 08-May-2022 | 30.8 KiB | 940 | 421 |
| aslparser.y | H A D | 08-May-2022 | 10.3 KiB | 246 | 40 |
| aslpld.c | H A D | 08-May-2022 | 26 KiB | 834 | 484 |
| aslpredef.c | H A D | 08-May-2022 | 29.9 KiB | 897 | 363 |
| aslprepkg.c | H A D | 08-May-2022 | 33 KiB | 994 | 452 |
| aslprimaries.y | H A D | 08-May-2022 | 52.3 KiB | 1,475 | 1,337 |
| aslprintf.c | H A D | 08-May-2022 | 17 KiB | 489 | 177 |
| aslprune.c | H A D | 08-May-2022 | 12.7 KiB | 350 | 112 |
| aslresource.c | H A D | 08-May-2022 | 38 KiB | 1,240 | 550 |
| aslresources.y | H A D | 08-May-2022 | 42.2 KiB | 1,022 | 962 |
| aslrestype1.c | H A D | 08-May-2022 | 26.3 KiB | 750 | 332 |
| aslrestype1i.c | H A D | 08-May-2022 | 26.5 KiB | 774 | 369 |
| aslrestype2.c | H A D | 08-May-2022 | 21 KiB | 568 | 250 |
| aslrestype2d.c | H A D | 08-May-2022 | 31.4 KiB | 846 | 467 |
| aslrestype2e.c | H A D | 08-May-2022 | 26.8 KiB | 680 | 351 |
| aslrestype2q.c | H A D | 08-May-2022 | 30.8 KiB | 825 | 451 |
| aslrestype2s.c | H A D | 08-May-2022 | 83.1 KiB | 2,379 | 1,282 |
| aslrestype2w.c | H A D | 08-May-2022 | 30 KiB | 806 | 441 |
| aslrules.y | H A D | 08-May-2022 | 33.1 KiB | 891 | 652 |
| aslstartup.c | H A D | 08-May-2022 | 20.6 KiB | 643 | 258 |
| aslstubs.c | H A D | 08-May-2022 | 13.2 KiB | 445 | 252 |
| aslsupport.l | H A D | 08-May-2022 | 30.2 KiB | 1,032 | 485 |
| aslsupport.y | H A D | 08-May-2022 | 9.8 KiB | 229 | 191 |
| asltokens.y | H A D | 08-May-2022 | 22.6 KiB | 643 | 570 |
| asltransform.c | H A D | 08-May-2022 | 41.1 KiB | 1,322 | 628 |
| asltree.c | H A D | 08-May-2022 | 30.5 KiB | 1,077 | 519 |
| asltypes.h | H A D | 08-May-2022 | 19.2 KiB | 543 | 259 |
| asltypes.y | H A D | 08-May-2022 | 17.6 KiB | 570 | 474 |
| aslutils.c | H A D | 08-May-2022 | 33.5 KiB | 1,190 | 518 |
| asluuid.c | H A D | 08-May-2022 | 9.6 KiB | 214 | 35 |
| aslwalks.c | H A D | 08-May-2022 | 38.7 KiB | 1,263 | 623 |
| aslxref.c | H A D | 08-May-2022 | 50.3 KiB | 1,539 | 705 |
| aslxrefout.c | H A D | 08-May-2022 | 28.9 KiB | 923 | 462 |
| cvcompiler.c | H A D | 08-May-2022 | 32.4 KiB | 1,030 | 490 |
| cvdisasm.c | H A D | 08-May-2022 | 18 KiB | 555 | 208 |
| cvparser.c | H A D | 08-May-2022 | 33.8 KiB | 1,040 | 505 |
| dtcompile.c | H A D | 08-May-2022 | 26.1 KiB | 859 | 408 |
| dtcompiler.h | H A D | 08-May-2022 | 23.8 KiB | 833 | 489 |
| dtcompilerparser.l | H A D | 08-May-2022 | 12 KiB | 294 | 99 |
| dtcompilerparser.y | H A D | 08-May-2022 | 11.6 KiB | 285 | 84 |
| dtexpress.c | H A D | 08-May-2022 | 16.7 KiB | 535 | 193 |
| dtfield.c | H A D | 08-May-2022 | 24.7 KiB | 851 | 378 |
| dtio.c | H A D | 08-May-2022 | 34.4 KiB | 1,236 | 611 |
| dtparser.l | H A D | 08-May-2022 | 10.5 KiB | 240 | 60 |
| dtparser.y | H A D | 08-May-2022 | 16.3 KiB | 399 | 118 |
| dtsubtable.c | H A D | 08-May-2022 | 15.6 KiB | 492 | 152 |
| dttable.c | H A D | 08-May-2022 | 14.5 KiB | 395 | 143 |
| dttable1.c | H A D | 08-May-2022 | 72.3 KiB | 2,581 | 1,567 |
| dttable2.c | H A D | 08-May-2022 | 89.4 KiB | 3,238 | 1,908 |
| dttemplate.c | H A D | 08-May-2022 | 22.1 KiB | 702 | 347 |
| dttemplate.h | H A D | 08-May-2022 | 126.2 KiB | 2,009 | 1,780 |
| dtutils.c | H A D | 08-May-2022 | 26.7 KiB | 979 | 496 |
| new_table.txt | H A D | 08-May-2022 | 3.5 KiB | 89 | 65 |
| preprocess.h | H A D | 08-May-2022 | 13.9 KiB | 402 | 167 |
| prexpress.c | H A D | 08-May-2022 | 15.2 KiB | 413 | 135 |
| prmacros.c | H A D | 08-May-2022 | 22 KiB | 689 | 304 |
| prparser.l | H A D | 08-May-2022 | 12.3 KiB | 345 | 106 |
| prparser.y | H A D | 08-May-2022 | 16.3 KiB | 402 | 124 |
| prscan.c | H A D | 08-May-2022 | 39.7 KiB | 1,375 | 698 |
| prutils.c | H A D | 08-May-2022 | 19.2 KiB | 582 | 205 |
| readme.txt | H A D | 08-May-2022 | 4.3 KiB | 140 | 91 |
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