Mailinglist Archive: opensuse-programming (27 mails)
| < Previous | Next > |
Re: [opensuse-programming] Why you sometimes need assembler
- From: Dave Plater <dplater@xxxxxxxxxxxxxxxx>
- Date: Wed, 13 Jan 2010 08:35:55 +0200
- Message-id: <4B4D69CB.5040500@xxxxxxxxxxxxxxxx>
On 01/12/2010 09:05 PM, Per Jessen wrote:
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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-programming+help@xxxxxxxxxxxx
Just a follow-up on my earlier question about which assembler to choose.I used to use masm 32 under windows 98, it had a series of macros for
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
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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-programming+help@xxxxxxxxxxxx
| < Previous | Next > |