[fpc-pascal] selecting target processor
Tomas Hajny
XHajT03 at mbox.vol.cz
Sun Jun 19 23:10:45 CEST 2005
Date sent: Sun, 19 Jun 2005 22:49:44 +0200
From: Florian Klaempfl <florian at freepascal.org>
To: FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org>
Subject: Re: [fpc-pascal] selecting target processor
Send reply to: FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org>
<mailto:fpc-pascal-request at lists.freepascal.org?subject=unsubscribe>
<mailto:fpc-pascal-request at lists.freepascal.org?subject=subscribe>
> > On 19 Jun 2005, at 20:48, Marc Santhoff wrote:
> >
> >> how can I tell fpc to use only instructions supported on a specific
> >> processor?
> >>
> >> I'm compiling on an athlon for running on a geode (restriction has
> >> to define instruction set from x686 to x586, I think).
> >
> > In theory, the code generated by FPC should always run on an i386
> > (even if you use e.g. -Op3), unless you use some special command
> > line switches I cannot find in the help.
>
> -C<x> code generation options:
> -Cc<x> set default calling convention to <x>
> -CD create also dynamic library (not supported)
> -Ce Compilation with emulated floating point opcodes
> -Cf<x> Select fpu instruction set to use, see fpc -i for
> possible values
> -Cg Generate PIC code
> -Ch<n> <n> bytes heap (between 1023 and 67107840)
> -Ci IO-checking
> -Cn omit linking stage
> -Co check overflow of integer operations
> -Cp<x> select instruction set, see fpc -i for possible
> values
>
> That is it :)
Nice can of worms I haven't been aware of... ;-) So what is the best -
Cp option for my Athlon then? ;-))) And what would be correct for AMD
K6 and all other non-Intel CPUs > 386? Looks as a lot of work for
Michael...
Tomas
More information about the fpc-pascal
mailing list