This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: Regarding SIMD features of GCC
- From: "John \(Eljay\) Love-Jensen" <eljay at adobe dot com>
- To: "ranjith kumar" <ranjit_kumar_b4u at yahoo dot co dot uk>, <gcc-help at gcc dot gnu dot org>
- Date: Sat, 7 Oct 2006 07:05:50 -0700
- Subject: RE: Regarding SIMD features of GCC
- References: <20061007002405.63420.qmail@web27401.mail.ukl.yahoo.com>
Hi Ranjith,
Sorry - partial answer, may be somewhat tangential.
You can get the compiler to produce a list of optimization produced by a given optimization level list this:
Example for C and -O2:
echo "" | gcc -O2 -fverbose-asm -c -S -x c -; cat ./-.s; rm ./-.s
Example for C++ and -O3:
echo "" | g++ -O3 -fverbose-asm -c -S -x c++ -; cat ./-.s; rm ./-.s
If you have them on your system, one way to access the SSE facilities is through the #include <mmintrin.h> and #include <xmmintrin.h> headers.
HTH,
--Eljay