Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2008-08

x86_64 Illegal FPU type

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Isaac Gouy
to Florian Klaempfl
--- Florian Klaempfl wrote 5 lines
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?

Reply by email

Florian Klaempfl
to Isaac Gouy
Isaac Gouy wrote 15 lines
--- Florian Klaempfl 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.

Reply by email