optimization - Writing a piece of C code such that compiler uses SSE4.1 instruction for generating assembly Code -


I want to write some code such as gcc optimized using -msse4.1 flag Can it Actually I want to check whether the compiler is taking advantage of the directions of SSE4.1 or not. There are several SSE 4.1 instructions () but I can not write a piece of C code which is using those instructions in the demographic legislation.

Thanks in advance.

I suspect that the GCC will use the SSE 4.1 instructions easily. But you can take a look:

Under the SPMD model, the programmer writes a program that appears to be mostly regular serial programs, although the performance model is actually that many examples of hardware programs Execute in parallel at (See a more detailed example that reflects this concept.) ISPC prepares C-based SPMD programming language to run CPU units; It often provides a 3x or more speedup on the CPU with 4-wide SSE units, without any difficulty in writing intrica codes.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -