05-01-2003, 01:51 PM
Of course, if you're algo suxs it will suck just as much in asm. The things you're saying are pretty obvious. Look at UGL, a combination of good algos and good asm code. However a compiler could never do that. UGL is as fast at it is becuase good innerloops. A compiler could never even come near those loops.
If asm is so useless why was it used so much before computers had hundreds of megabytes of memory and cpus running at several ghz? These reason was obvious back then, there wasn't even a discussion. They needed to take fulladvantage of every cpu tick. But as cpus got faster and memory larger, they could make large and ineffcient programs. And the reason they do it now is becuase they can.
And gcc isn't even such a good compiler, it's a okay compiler. I highly doubt it uses simd instructions. I'd have to see it to belive it.
And to whoever's using asm code, portability isn't an issue for them. Becuase who actually uses asm? Game developers, for consoles you have to use asm, for pc you're probably coding it for win32. A hobbist, i don't give a horses ass about portability. I don't even like *nix.
If asm is so useless why was it used so much before computers had hundreds of megabytes of memory and cpus running at several ghz? These reason was obvious back then, there wasn't even a discussion. They needed to take fulladvantage of every cpu tick. But as cpus got faster and memory larger, they could make large and ineffcient programs. And the reason they do it now is becuase they can.
And gcc isn't even such a good compiler, it's a okay compiler. I highly doubt it uses simd instructions. I'd have to see it to belive it.
And to whoever's using asm code, portability isn't an issue for them. Becuase who actually uses asm? Game developers, for consoles you have to use asm, for pc you're probably coding it for win32. A hobbist, i don't give a horses ass about portability. I don't even like *nix.
oship me and i will give you lots of guurrls and beeea