 Originally Posted by Ynot
does DIY assembly *really* make that much of a difference?
Assembly code is INSANELY fast. It also has a better memory footprint. I've never had a compiler make better asm than me (for small routines obviously.) Compilers are very liberal with the stack (liveliness analysis isn't very good), when I do something in asm I try to use the stack as little as possible, that usually means moving parts of the code around, which compilers have a hard time doing.
I do graphics and when doing extensions for OpenGL or shaders, you have to use assembly because C just isn't fast enough, even with the 3 pass optimizer turned on.
|
|
Bookmarks