title: How can I compile, run AML with ACPI, or how should I utilize ACPI functions?
body: <p>I'm trying to write a kernel and plan to use ACPI on some issues (e.g. identify interrupt source on APIC). </p>
  
  <p>However, I'm really a beginner on this, I read the related documentation and still do not have any clue on how to configure and use ACPI functions.</p>
  
  <p>I have some basic understanding that:</p>
  
  <p>1, there are some ACPI tables will be mapped in memory space, within which DSDT and SSDT will provide some definition blocks.</p>
  
  <p>2, The definition block are AML code</p>
  
  <p>3, I can retrieve some information directly from ACPI tables (e.g. I/O APIC base address)</p>
  
  <p>4, Further information some times need to run ACPI objects.</p>
  
  <p>These are basically my understanding about ACPI. However, how should I use AML code, how should I run ACPI objects. I do not have a clue.</p>
  
  <p>So if any one can provide a basic structure of how this mechanism works, how some basic functions provided by ACPI can be realized by OS??</p>
  
  <p>Thanks a lot! I'll keep reading the documentation and try to find some thing that can help me on understanding it.</p>