On 01/12/2010 09:05 PM, 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.
/Per Jessen, Zürich
I used to use masm 32 under windows 98, it had a series of macros for conditional loops and one called invoke which used a c like prototype for calling api functions and prevented you from having to pop and push values continually and also had a gui generator. I used it to make programs to interface with hardware I designed and built, it's the only thing I realy missed when changing to linux. It still exists to this day. Regards Dave P -- To unsubscribe, e-mail: opensuse-programming+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-programming+help@opensuse.org