flat assembler
Message board for the users of flat assembler.

Index > OS Construction > MMX/SSE/SSE2 extensions in a Kernel

Author
Thread Post new topic Reply to topic
rhyno_dagreat



Joined: 31 Jul 2006
Posts: 487
Location: Maryland, Unol Daleithiau
rhyno_dagreat 14 Mar 2008, 17:11
Hey, long time no see!

Correct me if I'm wrong on this, but in order to use MMX, you just have to enable the FPU, right?

But what about SSE/SSE2?
Post 14 Mar 2008, 17:11
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4354
Location: Now
edfed 14 Mar 2008, 17:20
[????]the mmx is available without any else operation than use the registers. as general operations.[/????]

to use fpu, the need to init the environment is a fact.
Post 14 Mar 2008, 17:20
View user's profile Send private message Visit poster's website Reply with quote
narada



Joined: 15 Feb 2008
Posts: 77
Location: Ukraine, Dnepropetrovsk
narada 14 Mar 2008, 19:15
Only one "problem" with MMX: after using mmx you mast use command EMMS. Thats all. In other - mmx "is free" ))
Post 14 Mar 2008, 19:15
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
rhyno_dagreat



Joined: 31 Jul 2006
Posts: 487
Location: Maryland, Unol Daleithiau
rhyno_dagreat 15 Mar 2008, 03:29
Cool, thanks.
Post 15 Mar 2008, 03:29
View user's profile Send private message Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo 17 Mar 2008, 18:26
MMX is only available on later model Pentium 1s and newer. It is lower precision than SSE, and it overlays the FPU stack. And you have to reset it (EMMS or FEMMS for AMD) if you want to use the FPU later. However, SSE is more annoying (alignment, ugh) to use, needs specific OS support, and not necessarily faster. Be sure to test for MMX or SSE availability before using it.
Post 17 Mar 2008, 18:26
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.