Ask a Question related to UNIX Programming, Design and Development.
-
Daihard #1
GCC option: -msse and -msse2
Hi.
I would like to perform code optimization on the program I build using GCC
2.96. I currently only use "-O2 -march=i686," which will probably only
optimize the code for the general Pentium Pro architecture. I'd like to
optimize it specifically for Pentium III. Now, I've read somewhere that
using the "-msse" or "-msse2" switch will achive that goal. However, GCC
2.96 doesn't recognize "-msse2," so I guess I can only use "-msse." What
I'd like to know is, what are those switches for, and what are the
differences between the two? Or is there any other way to optimize for
Pentium III?
Thanks in advance!
Dai
Daihard Guest
-
env Config option and LockDetect option not working with Berkeley DB RPC
I am currently using Berkeley DB 4.4.20 with Berkeley DB perl module 0.28. I am running the client/server version of Berkeley DB. Here is what my... -
tga export option
Hi, I am using visual basic script and can someone please tell me how can I export tga by scripting Illustrator. I saw that it has only gif, jpeg,... -
Help with HELP option
I am running a G5 on OS. 10.3.3 and am trying to learn to use PhotoShop 7. When I open the Help section, the application launches Internet Explorer... -
no PNG option?
hello, i've got an image set to RGB and when i try to save as... PNG is not in the list. what might i be doing wrong? i'm using 2.0. also, why is... -
RUN AS doesn't appear as an option...
When I shift + right-click on an EXE, I don't get a RUN AS option. Secondary logon is enabled and started. The RUN AS option is there when I'm... -
Tobias Oed #2
Re: GCC option: -msse and -msse2
Daihard wrote:
-msse let's the compiler use the sse instructions of the cpu. These can use> Hi.
>
> I would like to perform code optimization on the program I build using GCC
> 2.96. I currently only use "-O2 -march=i686," which will probably only
> optimize the code for the general Pentium Pro architecture. I'd like to
> optimize it specifically for Pentium III. Now, I've read somewhere that
> using the "-msse" or "-msse2" switch will achive that goal. However, GCC
> 2.96 doesn't recognize "-msse2," so I guess I can only use "-msse." What
> I'd like to know is, what are those switches for, and what are the
> differences between the two? Or is there any other way to optimize for
> Pentium III?
the mmx registers to do floating point arithmetic (single precision). So
you have 8 more floating point registers and each can hold 2 floats.
Operations on these two floats can be done in parallel. -msse2 uses
registers in newer pentiums (or opteron) to do the same with doubles. I
couldn't see a measurable speedup in my benchmarks (but an illegal
instruction on athlonXP).
Tobias.
--
unix [url]http://www.faqs.org/faqs/by-newsgroup/comp/comp.unix.programmer.html[/url]
clc [url]http://www.eskimo.com/~scs/C-faq/top.html[/url]
fclc (french): [url]http://www.isty-info.uvsq.fr/~rumeau/fclc/[/url]
Tobias Oed Guest



Reply With Quote

