|
|
Don't Fear the Assembler
I guess that's my point: assembly programming is more tedious than hard. Nowadays it's insane to write lots of code in assembly, but it's still a handy skill to have. First, you can do things in assembly that you can't in C. Second, it gives you a better insight how, exactly, your software works. Finally, assembly is a wicked razor wakizashi for slicing down hardened bugs in your apps. At that level, there's simply no place for them to hide. Update: Eric Gundrum (one of the founders of Extendamac, mach_*'s home) reminds me to mention a great way to get started learning PowerPC assembly is to write a little C code and then disassemble it (in Xcode: Build->Show Assembly Code), paying particular attention to how the stack frame is formed and how the registers are used. Try adding a stack variable or three, a loop, returning from the middle of a function, etc. Make sure you start off with all optimizations turned off, so the code is straight-forward. Then you can start turning them on, and notice how the code changes. In no time, you'll be an old codger like me, complaining with the rest of us about the poor code your compiler generates. (grin) Wednesday, April 06, 2005
|
Contact Me Topics RSS Feed Linkblog
Bill Bumgarner Brent Simmons Daniel Jalkut Dave Dribin Eric Albert Eric Rescorla Eric Sink Greg Miller Gus Mueller Jeremy Zawodny John Gruber Mark Dalrymple Michael Tsai Peter Ammon Raymond Chen Ryan Wilcox Scott Stevenson Steven Frank The Daily WTF we hates software Wil Shipley |
Copyright © 1997-2009 Jonathan 'Wolf' Rentzsch. All rights reserved.
Questions? Comments? Contact Me.