[fpc-devel] SSE in FPC

Mattias Gaertner nc-gaertnma at netcologne.de
Sat Nov 29 02:53:10 CET 2008


On Fri, 28 Nov 2008 21:25:16 +0100
darekm <darekm at emadar.com> wrote:

> Hi
> 
>   Are in FPC some  instruction set contains streaming SIMD (SSE) like
> in GCC:
> 
> http://gcc.gnu.org/onlinedocs/gcc-4.3.2/gcc/X86-Built_002din-Functions.html
> 
>  or in Microsoft Visual
> 
> http://msdn.microsoft.com/en-us/library/kcwz153a(VS.80).aspx

Use the mmx unit to discover what mmx/sse instruction set is supported
by your cpu. You can use mmx/sse commands directly in the asm
blocks and FPC automatically uses MMX/SSE instructions for your pascal
code if you allow it (specify CPU type). In my experiments FPC often
created faster code itself. So don't expect much speed gain when using
SSE instructions directly.


Mattias



More information about the fpc-devel mailing list