kolibrios-fun/drivers/devman/acpica/compiler
Sergey Semyonov (Serge) 8ec96e9db0 update acpica
git-svn-id: svn://kolibrios.org@2216 a494cfbc-eb01-0410-851d-a64ba20cac60
2011-09-20 16:54:11 +00:00
..
aslanalyze.c update acpica 2011-09-20 16:54:11 +00:00
aslbtypes.c update acpica 2011-09-20 16:54:11 +00:00
aslcodegen.c update acpica 2011-09-20 16:54:11 +00:00
aslcompile.c update acpica 2011-09-20 16:54:11 +00:00
aslcompiler.h update acpica 2011-09-20 16:54:11 +00:00
aslcompiler.l update acpica 2011-09-20 16:54:11 +00:00
aslcompiler.y update acpica 2011-09-20 16:54:11 +00:00
asldefine.h update acpica 2011-09-20 16:54:11 +00:00
aslerror.c update acpica 2011-09-20 16:54:11 +00:00
aslfiles.c update acpica 2011-09-20 16:54:11 +00:00
aslfold.c update acpica 2011-09-20 16:54:11 +00:00
aslglobal.h update acpica 2011-09-20 16:54:11 +00:00
asllength.c update acpica 2011-09-20 16:54:11 +00:00
asllisting.c update acpica 2011-09-20 16:54:11 +00:00
aslload.c update acpica 2011-09-20 16:54:11 +00:00
asllookup.c update acpica 2011-09-20 16:54:11 +00:00
aslmain.c update acpica 2011-09-20 16:54:11 +00:00
aslmap.c update acpica 2011-09-20 16:54:11 +00:00
aslmessages.h update acpica 2011-09-20 16:54:11 +00:00
aslopcodes.c update acpica 2011-09-20 16:54:11 +00:00
asloperands.c update acpica 2011-09-20 16:54:11 +00:00
aslopt.c update acpica 2011-09-20 16:54:11 +00:00
aslpredef.c update acpica 2011-09-20 16:54:11 +00:00
aslresource.c update acpica 2011-09-20 16:54:11 +00:00
aslrestype1.c update acpica 2011-09-20 16:54:11 +00:00
aslrestype1i.c update acpica 2011-09-20 16:54:11 +00:00
aslrestype2.c update acpica 2011-09-20 16:54:11 +00:00
aslrestype2d.c update acpica 2011-09-20 16:54:11 +00:00
aslrestype2e.c update acpica 2011-09-20 16:54:11 +00:00
aslrestype2q.c update acpica 2011-09-20 16:54:11 +00:00
aslrestype2w.c update acpica 2011-09-20 16:54:11 +00:00
aslstartup.c update acpica 2011-09-20 16:54:11 +00:00
aslstubs.c update acpica 2011-09-20 16:54:11 +00:00
asltransform.c update acpica 2011-09-20 16:54:11 +00:00
asltree.c update acpica 2011-09-20 16:54:11 +00:00
asltypes.h update acpica 2011-09-20 16:54:11 +00:00
aslutils.c update acpica 2011-09-20 16:54:11 +00:00
asluuid.c update acpica 2011-09-20 16:54:11 +00:00
aslwalks.c update acpica 2011-09-20 16:54:11 +00:00
dtcompile.c update acpica 2011-09-20 16:54:11 +00:00
dtcompiler.h update acpica 2011-09-20 16:54:11 +00:00
dtexpress.c update acpica 2011-09-20 16:54:11 +00:00
dtfield.c update acpica 2011-09-20 16:54:11 +00:00
dtio.c update acpica 2011-09-20 16:54:11 +00:00
dtparser.l update acpica 2011-09-20 16:54:11 +00:00
dtparser.y update acpica 2011-09-20 16:54:11 +00:00
dtsubtable.c update acpica 2011-09-20 16:54:11 +00:00
dttable.c update acpica 2011-09-20 16:54:11 +00:00
dttemplate.c update acpica 2011-09-20 16:54:11 +00:00
dttemplate.h update acpica 2011-09-20 16:54:11 +00:00
dtutils.c update acpica 2011-09-20 16:54:11 +00:00
Makefile acpica library 2010-06-18 14:39:07 +00:00
readme.txt acpica library 2010-06-18 14:39:07 +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.