Re: 64 bit F7

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Gene Heskett wrote:
On Wednesday 18 July 2007, Chris Jones wrote:
Since requirements for computers are more intense now, building 32-bit
with SSE/SSE2 by default would make sense, especially if a 20%
improvement is noticed in comparison.
Note that not all 32 bit processors have the SSE/SSE2 extensions - This
is why gcc does not enable this by default in 32 bit mode. All 64 bit
processes do so gcc can safely enable it by default, knowing that its
not going to generate code that some processors cannot run.

Chris

My 32 bit Athlon XP-2800 cpu has the SSE extension according to dmidecode. How would one go about enabling this in the kernel's Makefile?

Thanks.


Don't know about the makefile, but at the command line level, you need to get some additional flags into the gcc build command -

-msse : This one tells the compiler to allow the use of SSE instructions in the code. Note that this is only useful if the code is actually written to use SSE instructions directly. So unless your code actually does this, it won't make a difference.

-msse2 -msse3 : Same as above, but for the new SSE2 and even newer SSE3 instruction sets.

-mfpmath=sse : This one tells the compiler to use the SSE capabilities of your chip for mathematical stuff. This options can make a different to *any* code that uses maths.. Its this that makes the 20% difference to my 32 bit cuilds. (you have to also include any one of -msse, -msse2 or -msse3 at the same time).

Chris


--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux