Jump to content

I'm curious: if the default DSDT file is the one loaded, how comes it throws errors when compiling it?


3 posts in this topic

Recommended Posts

I just started with DSDT files and this is really bothering me. Is it because it's not the actual DSDT file but a decompiled version of some binaries? Why would the decompiler generate code with syntax errors?

Sloppy coding that was not checked for in previous version of the compiler used originally vs one you are using now.

Not all errors are caused that way, although that is the ongoing myth, perpetuated mostly people disassembling for hackintosh purposes.

 

Some are caused by imperfections in the disassembler (iasl). And that the binary format was not designed to be perfectly disassembled (most binary formats are not designed with that consideration, and AML is no exception).

 

And many errors people encounter are because they are using the iasl disassembler incorrectly. It is important to disassemble all files at once, not individually (eg. "iasl -da DSDT* SSDT*"). This allows the disassembler to better determine details about external references, especially the number of parameters for external methods.

  • Like 2
×
×
  • Create New...