@matthey
Yeah, assembly is getting harder and harder.
But what people forget is that there's a whole world of different optimizations between precalculated sine/cosine tables and assembly code on one side and writing (int)(128.0 * sin(pi*x/256.0) on the other. You can use precalculated sine/cosine tables and other tricks in C as well, it's just that for most things you don't need to.
So assembly _tricks_ are still useful to know, and learning PPC assembly is good because then you can read the output of gcc -S (generates assembly-code instead of machine code) or objdump -D (disassembly from the machine code binary). If you can read the assembly, you can identify potential optimizations, and if you can do m68k assembly you can certainly write optimized C. _________________ This weeks pet peeve: Using "voltage" instead of "potential", which leads to inventing new words like "amperage" instead of "current" (I, measured in A) or possible "charge" (amperehours, Ah or Coulomb, C). Sometimes I don't even know what people mean. |