[fpc-pascal] x86_64 Illegal FPU type

Florian Klaempfl florian at freepascal.org
Thu Aug 28 08:09:09 CEST 2008


Isaac Gouy wrote:
> --- Florian Klaempfl <florian at freepascal.org> wrote:
> 
>> Isaac Gouy schrieb:
>>> Suggestions please on what I've done wrong here
>>>
>>>
> http://shootout.alioth.debian.org/u64q/benchmark.php?test=mandelbrot&lang=fpascal&id=3#log
>>>
> http://shootout.alioth.debian.org/u64q/benchmark.php?test=meteor&lang=fpascal&id=1#log
>> x86-64 needs no sse2 as fpu type, it uses sse2 by default.
> 
> 
> Are there compiler options equivalent to {$FPUTYPE SSE2}{$I-} that
> would allow the same program to be compiled for different hardware
> without source code changes?

FPUTYPE is a cpu specific switch. You can either write
{$ifdef cpui386}{$FPUTYPE SSE2}{$endif cpui386}{$I-}

or only

{$I-}

and pass the FPU type with -Cfsse2 at the command line.



More information about the fpc-pascal mailing list