Zequez Posted September 13, 2014 Share Posted September 13, 2014 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? Link to comment https://www.insanelymac.com/forum/topic/300853-im-curious-if-the-default-dsdt-file-is-the-one-loaded-how-comes-it-throws-errors-when-compiling-it/ Share on other sites More sharing options...
MacUser2525 Posted September 13, 2014 Share Posted September 13, 2014 Sloppy coding that was not checked for in previous version of the compiler used originally vs one you are using now. Link to comment https://www.insanelymac.com/forum/topic/300853-im-curious-if-the-default-dsdt-file-is-the-one-loaded-how-comes-it-throws-errors-when-compiling-it/#findComment-2060215 Share on other sites More sharing options...
RehabMan Posted September 13, 2014 Share Posted September 13, 2014 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. 2 Link to comment https://www.insanelymac.com/forum/topic/300853-im-curious-if-the-default-dsdt-file-is-the-one-loaded-how-comes-it-throws-errors-when-compiling-it/#findComment-2060230 Share on other sites More sharing options...
Recommended Posts