Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

SSE in DOS -> alignment issues (DOSX)

posted by Rugxulo Homepage, Usono, 10.01.2008, 22:21

> Forgot to mention that the "SSE" doesn't work ... or at least I failed to
> find a "good" enough PC to test:

Okay, just for the record, you don't need to set SSE2, it should automatically detect whether available or not. "set PAQ8=sse2" overrides that detection, though (even on cpus that don't support it).

Anyways, yes, you're right, the latest DOS build doesn't work (I neglected to test) due to "fixing" the alignment in the Win32 build (go figure). You can always use the Win32 build under HX (yes!), but otherwise, just get the following (Causeway and DJGPP .EXEs only, no src for now, too busy):

http://rugxulo.googlepages.com/paq-jan9.7z (227k)

BTW, I'll have to work on it some more later. So it ain't "done" yet. :-D

> Anyway, MMX against NOASM test:
>
> MMX is 2 times faster. This is no evidence of usefulness of MMX at all -
> here MMX ASM competed against C++ mess. Rewriting the "NOASM" C++ stuff
> into optimized 80386 compatible ASM would possibly reduce MMX's benefit
> from 2 to a value dangerously close to 1 :lol3:

Yes, I think "NOASM" could be improved a fair bit. The real question is "why isn't SSE2 lots faster?"

Pros:

+ SSE2 is 128-bit registers, double precision (vs. 3dnow! or plain SSE or FPU)
+ SSE2 can operate at same time as FPU (in theory)
+ SSE2 (vs. FPU) is random register access instead of stack-based

Cons:

- only P4 or AMD64 or better etc. support it
- rare compiler support (well, rarer)
- doesn't seem faster
- needs specific OS support (instead of overlaying on top of FPU)
- annoying alignment issues
- potentially only super useful for math buffs or gfx whores :-D

---
Know your limits.h

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 223 users online (1 registered, 222 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum