kDawg
09-02-2009, 10:33 AM
EDITING
I wanted to share a DSDT editing tip with everyone. Since these files are thousands of lines long it drives me crazy trying to edit everything. BareBones software makes BBEdit. You can download a free 30 day trial so get all your DSDT editing done in 30 days.
http://www.barebones.com/products/bbedit/
This app lets you "fold" sections of code so what you end up with is a very readable file when completely folded.
Open your DSDT.dsl file in the menu goto Edit>Text Options
Select the ActionScript profile because the DSDT closely resembles AS. Don't worry it won't affect your file or change the extension on you. This is strictly for syntax coloring and folding.
551
Folded:
553
Unfolded:
550
NICE! Now can actually start to see the hierarchy this way. If only the free TextWrangler offered folding. :( Can't have everything. I'll expand this thread with other tips I've found helpful. Such as finding any PCI address with gfxutil, the references I use and more.
COMPARING DSDTs
BBEdit has a built in compare feature. You can access it via contextual menu:
555
Or via search menu:
552
Another great FREE compare utility is called DiffMerge. This does a better job at comparing two or more documents at the same time but since the majority of my time is spent in BBEdit I just use BBEdit's built in feature.
http://www.sourcegear.com/diffmerge/
http://www.sourcegear.com/diffmerge/screens/mac_file_window_diffs_with_context.png
I wanted to share a DSDT editing tip with everyone. Since these files are thousands of lines long it drives me crazy trying to edit everything. BareBones software makes BBEdit. You can download a free 30 day trial so get all your DSDT editing done in 30 days.
http://www.barebones.com/products/bbedit/
This app lets you "fold" sections of code so what you end up with is a very readable file when completely folded.
Open your DSDT.dsl file in the menu goto Edit>Text Options
Select the ActionScript profile because the DSDT closely resembles AS. Don't worry it won't affect your file or change the extension on you. This is strictly for syntax coloring and folding.
551
Folded:
553
Unfolded:
550
NICE! Now can actually start to see the hierarchy this way. If only the free TextWrangler offered folding. :( Can't have everything. I'll expand this thread with other tips I've found helpful. Such as finding any PCI address with gfxutil, the references I use and more.
COMPARING DSDTs
BBEdit has a built in compare feature. You can access it via contextual menu:
555
Or via search menu:
552
Another great FREE compare utility is called DiffMerge. This does a better job at comparing two or more documents at the same time but since the majority of my time is spent in BBEdit I just use BBEdit's built in feature.
http://www.sourcegear.com/diffmerge/
http://www.sourcegear.com/diffmerge/screens/mac_file_window_diffs_with_context.png