This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Regarding SIMD features of GCC


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]