acpica/source/compiler
Robert Moore 5cae8e0a88 iASL: Fix broken -g option (get Windows ACPI tables).
Fixes the -g option (get ACPI tables on Windows). This was
apparently broken in version 20070919.
2008-07-08 13:27:23 -07:00
..
aslanalyze.c iASL: lint changes only, no functional changes. 2008-07-08 11:10:07 -07:00
aslcodegen.c iASL: lint changes only, no functional changes. 2008-07-08 11:10:07 -07:00
aslcompile.c Update copyright to 2008. 2008-01-09 21:27:10 +00:00
aslcompiler.h iASL: Fix broken -g option (get Windows ACPI tables). 2008-07-08 13:27:23 -07:00
aslcompiler.l Update copyright to 2008. 2008-01-09 21:27:10 +00:00
aslcompiler.y Fix for LoadTable operator. 2008-01-23 22:07:34 +00:00
asldefine.h Update signon. 2008-01-09 22:40:23 +00:00
aslerror.c Update copyright to 2008. 2008-01-09 21:27:10 +00:00
aslfiles.c Add va_end statements as appropriate. 2008-01-24 23:36:02 +00:00
aslfold.c Update copyright to 2008. 2008-01-09 21:27:10 +00:00
aslglobal.h Update copyright to 2008. 2008-01-09 21:27:10 +00:00
asllength.c Update copyright to 2008. 2008-01-09 21:27:10 +00:00
asllisting.c Update copyright to 2008. 2008-01-09 21:27:10 +00:00
aslload.c Fix for multiple Externals with same name. 2008-01-23 21:57:15 +00:00
asllookup.c iASL: Prevent error message if CondRefOf target does not exist. 2008-07-02 10:12:46 -07:00
aslmain.c iASL: Fix broken -g option (get Windows ACPI tables). 2008-07-08 13:27:23 -07:00
aslmap.c iASL: Added two missing ACPI reserved names. 2008-06-19 12:43:23 -07:00
aslopcodes.c Eliminate ACPI_NATIVE_UINT type. 2008-05-08 13:22:20 -07:00
asloperands.c Eliminate ACPI_NATIVE_UINT type. 2008-05-08 13:22:20 -07:00
aslopt.c Eliminate ACPI_NATIVE_UINT type. 2008-05-08 13:22:20 -07:00
aslresource.c Update copyright to 2008. 2008-01-09 21:27:10 +00:00
aslrestype1.c Update copyright to 2008. 2008-01-09 21:27:10 +00:00
aslrestype2.c iASL: Enforce minimum 1 interrupt in interrupt macro. 2008-07-01 16:07:51 -07:00
aslstartup.c iASL: Fix broken -g option (get Windows ACPI tables). 2008-07-08 13:27:23 -07:00
aslstubs.c iASL: lint changes only, no functional changes. 2008-07-08 11:10:07 -07:00
asltransform.c Fix for AE_ALREADY_EXISTS when using Switch operator. 2008-02-26 19:55:23 +00:00
asltree.c Add va_end statements as appropriate. 2008-01-24 23:36:02 +00:00
asltypes.h iASL: Enforce minimum 1 interrupt in interrupt macro. 2008-07-01 16:07:51 -07:00
aslutils.c Automated cleanup; no functional changes. 2008-05-21 12:17:51 -07: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.