RE: Regarding SIMD features of GCC

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

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux