acpica/source/compiler
Robert Moore e211c4a5ac iASL: Allow alignment=0 for IO/Memory32 descriptors.
Means the same as alignment=1 in the field.
Also, fix check for _MAX on _GRA boundary.
2010-04-23 09:13:08 -07:00
..
aslanalyze.c iASL: Add typechecking for Return() values for predefined names. 2010-03-24 08:40:58 -07:00
aslcodegen.c Update all ACPICA copyrights and signons to 2010. 2010-01-08 08:49:11 -08:00
aslcompile.c iASL: Add -ts hex output option (emit ASL code). 2010-04-08 13:44:37 -07:00
aslcompiler.h iASL: Implement rules for MIF/MAF flags, address descriptors. 2010-04-22 15:08:47 -07:00
aslcompiler.l Update all ACPICA copyrights and signons to 2010. 2010-01-08 08:49:11 -08:00
aslcompiler.y Remove obsolete ACPI_INTEGER (acpi_integer) type. 2010-01-19 13:39:26 -08:00
asldefine.h iASL: Update signon for ACPI 4.0a 2010-04-07 08:39:25 -07:00
aslerror.c Update all ACPICA copyrights and signons to 2010. 2010-01-08 08:49:11 -08:00
aslfiles.c iASL: Update -ta/-tc hex output options. 2010-04-05 14:55:41 -07:00
aslfold.c Update all ACPICA copyrights and signons to 2010. 2010-01-08 08:49:11 -08:00
aslglobal.h iASL: Add -ts hex output option (emit ASL code). 2010-04-08 13:44:37 -07:00
asllength.c Update all ACPICA copyrights and signons to 2010. 2010-01-08 08:49:11 -08:00
asllisting.c iASL: Add -ts hex output option (emit ASL code). 2010-04-08 13:44:37 -07:00
aslload.c Update all ACPICA copyrights and signons to 2010. 2010-01-08 08:49:11 -08:00
asllookup.c Update all ACPICA copyrights and signons to 2010. 2010-01-08 08:49:11 -08:00
aslmain.c iASL: Add -ts hex output option (emit ASL code). 2010-04-08 13:44:37 -07:00
aslmap.c iASL: Add predefined name checking for static names. 2010-03-02 13:43:56 -08:00
aslopcodes.c Remove obsolete ACPI_INTEGER (acpi_integer) type. 2010-01-19 13:39:26 -08:00
asloperands.c Remove obsolete ACPI_INTEGER (acpi_integer) type. 2010-01-19 13:39:26 -08:00
aslopt.c Update all ACPICA copyrights and signons to 2010. 2010-01-08 08:49:11 -08:00
aslpredef.c iASL: Add error for more predefined names that must be methods. 2010-04-20 09:51:00 -07:00
aslresource.c iASL: Allow alignment=0 for IO/Memory32 descriptors. 2010-04-23 09:13:08 -07:00
aslrestype1.c iASL: Implement rules for MIF/MAF flags, address descriptors. 2010-04-22 15:08:47 -07:00
aslrestype1i.c iASL: Implement rules for MIF/MAF flags, address descriptors. 2010-04-22 15:08:47 -07:00
aslrestype2.c iASL: Split large aslrestype1.c and aslrestype2.c files. 2010-04-22 09:36:27 -07:00
aslrestype2d.c iASL: Implement rules for MIF/MAF flags, address descriptors. 2010-04-22 15:08:47 -07:00
aslrestype2e.c iASL: Implement rules for MIF/MAF flags, address descriptors. 2010-04-22 15:08:47 -07:00
aslrestype2q.c iASL: Implement rules for MIF/MAF flags, address descriptors. 2010-04-22 15:08:47 -07:00
aslrestype2w.c iASL: Implement rules for MIF/MAF flags, address descriptors. 2010-04-22 15:08:47 -07:00
aslstartup.c Update all ACPICA copyrights and signons to 2010. 2010-01-08 08:49:11 -08:00
aslstubs.c iASL: Add typechecking for Return() values for predefined names. 2010-03-24 08:40:58 -07:00
asltransform.c Remove obsolete ACPI_INTEGER (acpi_integer) type. 2010-01-19 13:39:26 -08:00
asltree.c Remove obsolete ACPI_INTEGER (acpi_integer) type. 2010-01-19 13:39:26 -08:00
asltypes.h iASL: Allow alignment=0 for IO/Memory32 descriptors. 2010-04-23 09:13:08 -07:00
aslutils.c Remove obsolete ACPI_INTEGER (acpi_integer) type. 2010-01-19 13:39:26 -08:00
readme.txt Source gen instructions 2005-06-29 16:15:45 +00:00

Instructions for integrating iASL compiler into MS VC++ 6.0 environment.

Part 1.  Integration as a custom tool

This procedure adds the iASL compiler as a custom tool that can be used
to compile ASL source files.  The output is sent to the VC output 
window.

a) Select Tools->Customize.

b) Select the "Tools" tab.

c) Scroll down to the bottom of the "Menu Contents" window.  There you
   will see an empty rectangle.  Click in the rectangle to enter a 
   name for this tool.

d) Type "iASL Compiler" in the box and hit enter.  You can now edit
   the other fields for this new custom tool.

e) Enter the following into the fields:

   Command:             C:\Acpi\iasl.exe
   Arguments:           -e "$(FilePath)"
   Initial Directory    "$(FileDir)"
   Use Output Window    <Check this option>

   "Command" must be the path to wherever you copied the compiler.
   "-e" instructs the compiler to produce messages appropriate for VC.
   Quotes around FilePath and FileDir enable spaces in filenames.

f) Select "Close".

These steps will add the compiler to the tools menu as a custom tool.
By enabling "Use Output Window", you can click on error messages in
the output window and the source file and source line will be
automatically displayed by VC.  Also, you can use F4 to step through
the messages and the corresponding source line(s).


Part 2.  Integration into a project build

This procedure creates a project that compiles ASL files to AML.

a) Create a new, empty project and add your .ASL files to the project

b) For all ASL files in the project, specify a custom build (under
Project/Settings/CustomBuild with the following settings (or similar):

Commands:
c:\acpi\libraries\iasl.exe -vs -vi "$(InputPath)"

Output:
$(InputDir)\$(InputPath).aml



Compiler Generation From Source

Generation of the ASL compiler from source code requires these items:


Required Tools
1) The Flex (or Lex) lexical analyzer generator.
2) The Bison (or Yacc) parser generator.
3) An ANSI C compiler.


Required Source Code.

There are three major source code components that are required to 
generate the compiler:

1) The ASL compiler source.
2) The ACPI CA Core Subsystem source.  In particular, the Namespace Manager
     component is used to create an internal ACPI namespace and symbol table,
     and the AML Interpreter is used to evaluate constant expressions.
3) The Common source for all ACPI components.