Hello, On Tue, 12 Jan 2010, Per Jessen wrote:
Just a follow-up on my earlier question about which assembler to choose. I've opted for nasm. I still don't quite like the simplicity-idea, but I think I can work around the most annoying "features" with a set of my own macros.
However, I've just completed some initial testing, and here is why you need assembler:
I'm processing a dataset of 262176 bytes. Not a lot, but still about 2million bits. The computation is 99.9% CPU-bound.
In my first version, I used a div instruction in the code, and the computation took 151minutes (wall-time). In the second, I removed the div, and probably removed one or two other instructions. New computation took 62minutes.
... and replaced it by what? And have you compared to C-Code compiled with gcc or icc? ;) -dnh -- "Lege die eine Hand in die Gefriertruhe und die andere auf eine heiße Herdplatte. Im Durchschnitt ist das dann ein angenehmes Gefühl." [CB's Lehrer erklaert den "Durchschnitt"] -- To unsubscribe, e-mail: opensuse-programming+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-programming+help@opensuse.org