flat assembler
Message board for the users of flat assembler.
Index
> Linux > spectralnorm bench |
Author |
|
Melissa 03 May 2012, 00:09
This time I'have implemented
spectral norm bench and I am quite satisfied as first shot was quite successful http://shootout.alioth.debian.org/u64q/program.php?test=spectralnorm&lang=java&id=2 This program is useful as example for threads implemented with sys_clone and some synchronization primitives like barrier and mutex implemented with futex syscall. Also there is some sse again. Program executes at about 2 secs on q6600 @ 2.4 GHz and is faster than C++ version. Don't have intel fortran to test that. All in all this is fun to chase
|
|||||||||||
03 May 2012, 00:09 |
|
LocoDelAssembly 03 May 2012, 00:27
Perhaps I'm a bit lost, but shouldn't you use AMDPad16 BEFORE the labels?
Example: Code: AMDPad16 .L0: ; AMDPad16 dec r8 xorpd xmm0,xmm0 xor ebx,ebx AMDPad16 .L1: ; AMDPad16 BTW, for some odd reason the link you posted directs me to the n-body problem you posted earlier even though the test web param says otherwise. This link worked for me: http://shootout.alioth.debian.org/u64q/benchmark.php?test=spectralnorm&lang=java |
|||
03 May 2012, 00:27 |
|
Melissa 03 May 2012, 08:57
I didn't know how to use macro, I took it from this board.
Thanks for correction Greetings! |
|||
03 May 2012, 08:57 |
|
Melissa 04 May 2012, 21:01
Thanks for suggestions
I asked and they responded that don't want assembler programs there. Perhaps that will change in future as I think that running such benchmarks could popularize asm programming (and are good exercise). |
|||
04 May 2012, 21:01 |
|
rugxulo 05 May 2012, 12:56
Melissa wrote:
Maybe they think it's almost "cheating"? (???) Or maybe they're just scared of what will happen. |
|||
05 May 2012, 12:56 |
|
revolution 05 May 2012, 13:02
rugxulo wrote: Maybe they think it's almost "cheating"? (???) Or maybe they're just scared of what will happen. Well written assembly will always outperform well written HLL/compiler on any non-trivial task. Poorly written assembly can be beaten by almost anything, so be careful about general comparisons, they won't always be accurate. |
|||
05 May 2012, 13:02 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.